summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------plugins/01-fast-syntax-highlighting0
m---------plugins/02-zsh-history-substring-search0
m---------plugins/03-zsh-autosuggestions0
-rw-r--r--zshrc7
4 files changed, 6 insertions, 1 deletions
diff --git a/plugins/01-fast-syntax-highlighting b/plugins/01-fast-syntax-highlighting
-Subproject 7d6524e6fbdfa6c3bdd5cf840f6aac0bd39f514
+Subproject c087169e66b38d989d068d00e49ce09a897af8d
diff --git a/plugins/02-zsh-history-substring-search b/plugins/02-zsh-history-substring-search
-Subproject be0fe1fca94c2eea3c3798de3c36acfcebf1694
+Subproject 47a7d416c652a109f6e8856081abc042b50125f
diff --git a/plugins/03-zsh-autosuggestions b/plugins/03-zsh-autosuggestions
-Subproject 2cb6eb6e29852e64a146b0284275ecdc0661b08
+Subproject 67a364bc1766fb775010cd00dda196721001341
diff --git a/zshrc b/zshrc
index 5385352..158225a 100644
--- a/zshrc
+++ b/zshrc
@@ -3,7 +3,12 @@
# config files and plugins located relative to this file
# directory this file is in
-CFG_DIR=$(dirname $(readlink -f ~/.zshrc))
+local CFG_DIR
+if [ -z "$ZSH_CFG_DIR" ]; then
+ CFG_DIR=$(dirname $(readlink -f "${(%):-%N}"))
+else
+ CFG_DIR="$ZSH_CFG_DIR"
+fi
for plugin in $CFG_DIR/plugins/*(N); do
# add *.zsh if no *.plugin.zsh found