Mercurial > hg > config
comparison .bashrc @ 767:35f8751c0930
it is very annoying to have ones overrides overridden; see also http://stackoverflow.com/questions/25381304/why-type-cd-on-mac-os-states-that-cd-is-a-function
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Thu, 28 Jan 2016 14:02:17 -0800 |
parents | b8ac41eda8ee |
children | 489204193cd7 |
comparison
equal
deleted
inserted
replaced
766:fb03f2527562 | 767:35f8751c0930 |
---|---|
586 | 586 |
587 exists() { | 587 exists() { |
588 while read line; do echo ${line} : $(($(test "-e ${line}"\") )); done | 588 while read line; do echo ${line} : $(($(test "-e ${line}"\") )); done |
589 } | 589 } |
590 | 590 |
591 ### include overrides for commands | |
592 source ~/.bash_overrides | |
593 | |
594 ### deactivate any virtualenvs | |
595 if type deactivate &> /dev/null | |
596 then | |
597 deactivate | |
598 fi | |
599 | |
600 ### ruby version manager | 591 ### ruby version manager |
601 [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | 592 [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
602 export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting | 593 export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting |
603 | 594 |
595 ### include overrides for commands | |
596 source ~/.bash_overrides | |
597 | |
598 ### deactivate any virtualenvs | |
599 if type deactivate &> /dev/null | |
600 then | |
601 deactivate | |
602 fi | |
603 | |
604 | |
605 ### source site-specific BASHRC extensions | |
604 export CISCO_BASHRC="${HOME}/cisco/bin/.bashrc" | 606 export CISCO_BASHRC="${HOME}/cisco/bin/.bashrc" |
605 if [ -e "${CISCO_BASHRC}" ] | 607 if [ -e "${CISCO_BASHRC}" ] |
606 then | 608 then |
607 . "${CISCO_BASHRC}" | 609 . "${CISCO_BASHRC}" |
608 fi | 610 fi |