Sun, 29 Mar 2015 17:52:22 -0400
move some basics into a common profile
.bashrc | file | annotate | diff | comparison | revisions | |
.profile.common | file | annotate | diff | comparison | revisions | |
.zshrc | file | annotate | diff | comparison | revisions |
--- a/.bashrc +++ b/.bashrc @@ -5,8 +5,7 @@ if [ -f ~/.bashrc.dist ]; then source ~/.bashrc.dist fi -export EDITOR=vim -export PERL_CPANM_OPT='-n --prompt --reinstall' +source ~/.profile.common if [ -d ~/bin ]; then export PATH="$HOME/bin:$PATH"
new file mode 100644 --- /dev/null +++ b/.profile.common @@ -0,0 +1,12 @@ +# simple profile stuff that is common to both zsh and bash + +export EDITOR=vim +export PERL_CPANM_OPT='-n --prompt --reinstall' +export DEVEL_REPL_PROFILE='Standard' + +alias hgcd='cd $(hg root)' + +if [ -f ~/.profile.common.local ]; then + source ~/.profile.common.local +fi +
--- a/.zshrc +++ b/.zshrc @@ -35,8 +35,7 @@ export PATH="$HOME/bin:/usr/local/bin:/u # export LANG=en_US.UTF-8 -export EDITOR='vim' -export PERL_CPANM_OPT='-n --prompt --reinstall' +source ~/.profile.common typeset -U path @@ -50,8 +49,6 @@ if [ -d ~/.rbenv ]; then eval "$(rbenv init - zsh)" fi -alias hgcd='cd $(hg root)' - if [ -f ~/.zshrc.local ]; then source ~/.zshrc.local fi