aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2024-02-22 17:29:10 +0000
committerJosh Rahm <rahm@google.com>2024-02-22 17:29:10 +0000
commit89a6513ed79b86fa7041c0e18299c1d7bf6a4be3 (patch)
tree4b72af1c717abb71032e121758717413e08c0402
parentc9628d220211e98ad8c8b67a2e67186405ba7515 (diff)
parentf221e37a71ff46176028b4b93e9e02ef7af19fc8 (diff)
downloadzshrcd-89a6513ed79b86fa7041c0e18299c1d7bf6a4be3.tar.gz
zshrcd-89a6513ed79b86fa7041c0e18299c1d7bf6a4be3.tar.bz2
zshrcd-89a6513ed79b86fa7041c0e18299c1d7bf6a4be3.zip
Merge branch 'main' of git.josher.dev:zshrcd
-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