From dc97c212fe68346e87de9a6726b9de7d177ac742 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Mon, 30 Jan 2023 10:54:28 -0700 Subject: Only run luarocks if it exists --- 03-environment.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit From 19015cd04b697abdc3f522f4789e311812eeb2ac Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Mon, 30 Jan 2023 10:55:19 -0700 Subject: Fix the file-contents-expansion to properly escape backslashes --- 98-bindkeys.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/98-bindkeys.zsh b/98-bindkeys.zsh index a68502d..1dd2842 100644 --- a/98-bindkeys.zsh +++ b/98-bindkeys.zsh @@ -35,7 +35,7 @@ nvim-cmd-mode() { } quote-escape() { - sed "s/'/'\"'\"'/g" <<< "$1" + sed "s/'/'\"'\"'/g;s/\\\\/\\\\\\\\/g" <<< "$1" } expand-last-file() { -- cgit From f221e37a71ff46176028b4b93e9e02ef7af19fc8 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Thu, 22 Feb 2024 10:25:55 -0700 Subject: Add zoxide if present --- 99-plugins.zsh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit