Add local overrides to bashrc / zshrc

This commit is contained in:
2020-12-24 01:24:18 +08:00
parent 8c49722513
commit 1a9e5ca4bd
2 changed files with 10 additions and 0 deletions

View File

@@ -120,3 +120,7 @@ fi
if [ "$GPG_TTY" = "" ]; then if [ "$GPG_TTY" = "" ]; then
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
fi fi
# override local settings with local shell files
[ -f "$HOME/.rc-local" ] && source "$HOME/.rc-local"
[ -f "$HOME/.bashrc-local" ] && source "$HOME/.bashrc-local"

View File

@@ -76,3 +76,9 @@ setopt HIST_LEX_WORDS # parse quotes when parsing history
if [ "$GPG_TTY" = "" ]; then if [ "$GPG_TTY" = "" ]; then
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
fi 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"