Compare commits

..

2 Commits

Author SHA1 Message Date
ac97157665 Add autoenv, automatic environment setup
Using a hook, automatically detect when `.enter` and `.exit` scripts
and source them when changing the shells current directory.
2018-04-22 12:16:11 +01:00
d58e543c78 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-22 12:15:38 +01:00

6
zshrc
View File

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