Skip to content

Commit

Permalink
Look for and source ~/.etcrc, if available.
Browse files Browse the repository at this point in the history
This is meant to be a way to have local configuration that works for
both zsh and bash.
  • Loading branch information
jszakmeister committed Mar 18, 2013
1 parent a6ca3ef commit 760b469
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bash/bashrc
Expand Up @@ -50,3 +50,5 @@ source "$ETC_HOME/bash/themes/${BASH_THEME:-jszakmeister}.bash-theme"

test -f "$ETC_HOME/user/$ETC_USER/init.sh" &&
. "$ETC_HOME/user/$ETC_USER/init.sh"

test -f "$HOME/.etcrc" && . "$HOME/.etcrc"
2 changes: 2 additions & 0 deletions zsh/zshrc
Expand Up @@ -29,3 +29,5 @@ source "$ETC_HOME/zsh/themes/${ZSH_THEME:-jszakmeister}.zsh-theme"

test -f "$ETC_HOME/user/$ETC_USER/init.sh" &&
. "$ETC_HOME/user/$ETC_USER/init.sh"

test -f "$HOME/.etcrc" && . "$HOME/.etcrc"

0 comments on commit 760b469

Please sign in to comment.