Compare commits

..

2 Commits

Author SHA1 Message Date
8fbb496b0d 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:14:29 +01:00
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