bashrc 627 B

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