1
0

.bashrc 696 B

123456789101112131415161718192021222324252627282930313233
  1. # ensure /usr/local/bin is in path
  2. export PATH=/usr/local/bin:~/.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. [ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
  24. # LM Studio CLI (lms)
  25. [ -d "$HOME/.lmstudio/bin" ] && export PATH="$PATH:$HOME/.lmstudio/bin"