zsh: refactor .zshrc; add $topic/bin to PATH

This commit is contained in:
Henrik Lissner 2016-11-10 18:37:01 +01:00
parent d386aa5403
commit 8f20184b47

View file

@ -6,8 +6,7 @@
repo "tarjoilija/zgen" "$HOME/.zgen" repo "tarjoilija/zgen" "$HOME/.zgen"
source "$HOME/.zgen/zgen.zsh" source "$HOME/.zgen/zgen.zsh"
if ! zgen saved; if ! zgen saved; then
then
info "Creating zgen save" info "Creating zgen save"
cache-clear cache-clear
@ -23,9 +22,12 @@ fi
[[ -f "$HOME/.zshrc.local" ]] && source "$HOME/.zshrc.local" [[ -f "$HOME/.zshrc.local" ]] && source "$HOME/.zshrc.local"
for file in $DOTFILES/.enabled.d/*/*.zsh; for file in $DOTFILES/.enabled.d/*; do
do [[ -d "$file/bin" ]] && export PATH="$file/bin:$PATH"
source "$file"
for script in $file/*.zsh; do
source "$script"
done
done done
# Done! # Done!