From 003a0bca3e9780e974c8499e4043d1d73b68e9f2 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Wed, 18 Jul 2018 00:12:00 +0200 Subject: [PATCH] Add local zshrc loading. --- home/dotfiles/zshrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/home/dotfiles/zshrc b/home/dotfiles/zshrc index b5ceaca..48fdb58 100644 --- a/home/dotfiles/zshrc +++ b/home/dotfiles/zshrc @@ -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"