.bashrc 686 B

123456789101112131415161718192021222324252627282930313233
  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. # some more ls aliases from ubuntu
  19. export CLICOLOR=1
  20. export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
  21. eval `dircolors 2> /dev/null`
  22. # better back-searching
  23. bind '"\e[A": history-search-backward'
  24. bind '"\e[B": history-search-forward'
  25. if [ -f `brew --prefix`/etc/bash_completion ]; then
  26. . `brew --prefix`/etc/bash_completion
  27. fi