Add local zshrc loading.

master
Icedream 2018-07-18 00:12:00 +02:00
parent 5a4cc71bb4
commit 003a0bca3e
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,7 @@
ZSH_DEBUG="${ZSH_DEBUG:-0}"
ZSH_ALIAS=${ZSH_ALIAS:-1}
ZSH_CUSTOM=${ZSH_CUSTOM:-1}
ZSH_DEFAULT_TERM=${ZSH_DEFAULT_TERM:-1}
ZSH_GPG_PINENTRY_FIX=${ZSH_GPG_PINENTRY_FIX:-1}
ZSH_POWERLINE="${ZSH_POWERLINE:-1}"
@ -151,6 +152,19 @@ if [ $ZSH_PRINT_REBOOT_REQUIRED -gt 0 ]; then
fi
section_end
section "custom zshrc"
if [ $ZSH_CUSTOM -gt 0 ]; then
log "Checking if local profile code exists at ~/.local_zshrc..."
if [ -f ~/.local_zshrc ]; then
log "Exists, loading."
# shellcheck source=/dev/null
. ~/.local_zshrc
else
log "Does not exist, skipping."
fi
fi
section_end
# print env
section "Environment variables"