From 1a9e5ca4bdff1212d4b831b457f5989831bb3d5b Mon Sep 17 00:00:00 2001 From: madumlao Date: Thu, 24 Dec 2020 01:24:18 +0800 Subject: [PATCH] Add local overrides to bashrc / zshrc --- skel/.bashrc | 4 ++++ skel/.zshrc | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/skel/.bashrc b/skel/.bashrc index 8534e1c..bf1c4b4 100644 --- a/skel/.bashrc +++ b/skel/.bashrc @@ -120,3 +120,7 @@ fi if [ "$GPG_TTY" = "" ]; then export GPG_TTY=$(tty) fi + +# override local settings with local shell files +[ -f "$HOME/.rc-local" ] && source "$HOME/.rc-local" +[ -f "$HOME/.bashrc-local" ] && source "$HOME/.bashrc-local" diff --git a/skel/.zshrc b/skel/.zshrc index dc7c0ec..5147611 100644 --- a/skel/.zshrc +++ b/skel/.zshrc @@ -76,3 +76,9 @@ setopt HIST_LEX_WORDS # parse quotes when parsing history if [ "$GPG_TTY" = "" ]; then export GPG_TTY=$(tty) fi + +# override local settings with local shell files +emulate bash +[ -f "$HOME/.rc-local" ] && source "$HOME/.rc-local" +emulate zsh +[ -f "$HOME/.zshrc-local" ] && source "$HOME/.zshrc-local"