bashrc 738 B

12345678910111213141516171819202122232425262728293031323334
  1. if [ -f "/usr/local/dcs/lib/config/Bash_Profile" ]; then
  2. source /usr/local/dcs/lib/config/Bash_Profile
  3. fi
  4. PS1='\[\e[1;32m\]\u@\h \W\$ \[\e[0m\]'
  5. # ls pleasantness
  6. alias l='\ls --color=auto'
  7. alias ls='ls -a --color=auto'
  8. alias lls='ls -alh --color=auto'
  9. # grep the entirety of the history
  10. alias hg='history | grep'
  11. # Use vim as the default text editor
  12. export VISUAL=vim
  13. # local folder in PATH
  14. export PATH=$HOME/bin:$PATH
  15. # Flags used for CS243 "Mechanics of Programming"
  16. alias gcc='gcc -std=c99 -Wall -ggdb -Wextra -pedantic'
  17. # Functions for converting between hex and decimal
  18. h2d(){
  19. echo "ibase=16; $@"|bc
  20. }
  21. d2h(){
  22. echo "obase=16; $@"|bc
  23. }
  24. # alias for vim muscle memory when quitting
  25. alias :q='exit'
  26. alias :e='vim'