1
0

.bashrc 563 B

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