aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--03-environment.zsh4
-rw-r--r--98-bindkeys.zsh2
-rw-r--r--99-plugins.zsh5
3 files changed, 9 insertions, 2 deletions
diff --git a/03-environment.zsh b/03-environment.zsh
index cca6747..18b77d3 100644
--- a/03-environment.zsh
+++ b/03-environment.zsh
@@ -11,4 +11,6 @@ fi
export LANG=en_US.UTF-8
export EDITOR=nvim
-eval $(luarocks path)
+if [ -x luarocks ] ; then
+ eval $(luarocks path)
+fi
diff --git a/98-bindkeys.zsh b/98-bindkeys.zsh
index d89126d..1c20068 100644
--- a/98-bindkeys.zsh
+++ b/98-bindkeys.zsh
@@ -45,7 +45,7 @@ nvim-cmd-mode() {
}
quote-escape() {
- sed "s/'/'\"'\"'/g" <<< "$1"
+ sed "s/'/'\"'\"'/g;s/\\\\/\\\\\\\\/g" <<< "$1"
}
expand-last-file() {
diff --git a/99-plugins.zsh b/99-plugins.zsh
index 4f10476..18afb47 100644
--- a/99-plugins.zsh
+++ b/99-plugins.zsh
@@ -14,4 +14,9 @@ else
source ~/.zshrc.d/plugins/fast-syntax-highlighting/F-Sy-H.plugin.zsh
fi
+if ( which zoxide &> /dev/null ) ; then
+ eval "$(zoxide init zsh)"
+ alias cd=z
+fi
+
/bin/true