1
0

.bashrc 536 B

123456789101112131415161718192021222324252627
  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'