Add local zshrc loading.
parent
5a4cc71bb4
commit
003a0bca3e
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue