summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Höppner2018-04-22 11:05:00 +0200
committerTill Höppner2018-04-22 11:05:00 +0200
commit998dc8d13c538ff42b47e2fcc1a0c2943c08dc4c (patch)
treea314b4d676abfb1fa922e1552974c49e563729dc
parentf86b963120c8b09c00508bf1a0d787fa7d1888eb (diff)
downloadzsh-998dc8d13c538ff42b47e2fcc1a0c2943c08dc4c.tar.gz
zsh-998dc8d13c538ff42b47e2fcc1a0c2943c08dc4c.tar.xz
zsh-998dc8d13c538ff42b47e2fcc1a0c2943c08dc4c.zip
Update dependencies, stop relying on linkage to ~/.zshrc
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