From 998dc8d13c538ff42b47e2fcc1a0c2943c08dc4c Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Sun, 22 Apr 2018 11:05:00 +0200 Subject: Update dependencies, stop relying on linkage to ~/.zshrc --- plugins/01-fast-syntax-highlighting | 2 +- plugins/02-zsh-history-substring-search | 2 +- plugins/03-zsh-autosuggestions | 2 +- zshrc | 7 ++++++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/01-fast-syntax-highlighting b/plugins/01-fast-syntax-highlighting index 7d6524e..c087169 160000 --- a/plugins/01-fast-syntax-highlighting +++ b/plugins/01-fast-syntax-highlighting @@ -1 +1 @@ -Subproject commit 7d6524e6fbdfa6c3bdd5cf840f6aac0bd39f514d +Subproject commit c087169e66b38d989d068d00e49ce09a897af8dd diff --git a/plugins/02-zsh-history-substring-search b/plugins/02-zsh-history-substring-search index be0fe1f..47a7d41 160000 --- a/plugins/02-zsh-history-substring-search +++ b/plugins/02-zsh-history-substring-search @@ -1 +1 @@ -Subproject commit be0fe1fca94c2eea3c3798de3c36acfcebf16943 +Subproject commit 47a7d416c652a109f6e8856081abc042b50125f4 diff --git a/plugins/03-zsh-autosuggestions b/plugins/03-zsh-autosuggestions index 2cb6eb6..67a364b 160000 --- a/plugins/03-zsh-autosuggestions +++ b/plugins/03-zsh-autosuggestions @@ -1 +1 @@ -Subproject commit 2cb6eb6e29852e64a146b0284275ecdc0661b082 +Subproject commit 67a364bc1766fb775010cd00dda1967210013410 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 -- cgit v1.2.3