Compare commits

..

1 Commits

Author SHA1 Message Date
f19bf41c63 Improve & rename plugin sourcing function
Rename `plugin-load` to `source-plugin` and add a check for the plugin
directory, a message is displayed if it does not exist.
2018-04-21 17:21:00 +01:00

6
zshrc
View File

@ -3,11 +3,9 @@
# Load plugin scripts
source-plugin() {
if [ -d ~/.config/zsh/$1 ]; then
source ~/.config/zsh/$1/$1.plugin.zsh
else
[ -d ~/.config/zsh/$1 ] && \
source ~/.config/zsh/$1/$1.plugin.zsh || \
echo "zsh plugin not found: $1"
fi
}
source-plugin zsh-autosuggestions
source-plugin zsh-history-substring-search