1
0

.bashrc 829 B

1234567891011121314151617181920212223242526272829303132333435
  1. # ensure /usr/local/bin is in path
  2. export PATH=/usr/local/bin:$PATH
  3. if [[ $- != *i* ]] ; then
  4. # shell is non-interactive. be done now!
  5. return
  6. fi
  7. if [ -d $HOME/.bashrc.d ]; then
  8. for file in $HOME/.bashrc.d/*.bash; do
  9. source $file
  10. done
  11. fi
  12. # load all files from .shell/rc.d directory
  13. if [ -d $HOME/.rc.d ]; then
  14. for file in $HOME/.rc.d/*.sh; do
  15. source $file
  16. done
  17. fi
  18. # prompt
  19. PS1="\[\e[1;32m\]\h:\W \u$\[\e[0m\] "
  20. # better back-searching
  21. bind '"\e[A": history-search-backward'
  22. bind '"\e[B": history-search-forward'
  23. if [ -f `brew --prefix`/etc/bash_completion ]; then
  24. . `brew --prefix`/etc/bash_completion
  25. fi
  26. export NVM_DIR="$HOME/.nvm"
  27. [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
  28. [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion