Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.7 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. in_lab=false
  2. if [ -d "/h/u3/c7/" ]; then
  3. in_lab=true
  4. fi
  5. # system
  6. alias l='ls -a'
  7. c() { cd $@ && l ; }
  8. alias ll='ls -alF'
  9. alias cs='printf "\033c"'
  10. shopt -s dotglob
  11. alias reb="sudo shutdown -r 0"
  12. alias sd="sudo shutdown 0"
  13. alias s="systemctl suspend"
  14. # directories
  15. alias cdr="c ~/../../"
  16. alias cdd="c ~/Downloads"
  17. if $in_lab; then
  18. alias mt="okular ~/Downloads/Textbook.pdf"
  19. # 207
  20. alias 207r="c ~/207/mokkar/"
  21. alias a2="c ~/207/mokkar/a2/src/farmyard"
  22. alias a2n="vi ~/207/mokkar/a2/notes.txt"
  23. # 258
  24. alias p2="c ~/258/258-labs-self/l5/p2"
  25. alias l5="c ~/258/258-labs-self/l5"
  26. alias lab="c ~/258/258-labs-self"
  27. else
  28. alias mt="okular ~/Documents/School/221/Textbook.pdf"
  29. alias rcg="c ~/Documents/coding/random-color-generator"
  30. # 207
  31. alias 7r="c ~/Documents/School/207/group_0485"
  32. alias ph1="c ~/Documents/School/207/group_0485/phase1"
  33. # 221
  34. alias 221="c ~/Documents/School/221"
  35. fi
  36. # config
  37. alias lc="c ~/linux-config"
  38. alias vb="vi ~/.bash_aliases"
  39. alias vv="vi ~/.vimrc"
  40. alias rba=". ~/.bashrc"
  41. # git
  42. . ~/.secure
  43. alias gs="git status"
  44. alias gpl="git pull"
  45. alias gps="git push"
  46. alias vig="vi .gitignore"
  47. alias ga="git add *"
  48. alias gai="git add .gitignore"
  49. alias gd="git diff"
  50. alias gdc="git diff --cached"
  51. alias gstore="git config credential.helper store"
  52. gc(){ git commit -m "$1" ; }
  53. alias gcm="git commit"
  54. alias gl="git log"
  55. alias gsl="git shortlog"
  56. # idea
  57. alias jh="echo $JAVA_HOME"
  58. alias jv="java -version"
  59. # alias idea=". ~/Desktop/idea.sh"
  60. # alias idea=". ~/usr/idea-IC-172.4343.14/bin/idea.sh"
  61. # alias jf="export JAVA_HOME=/home/kevin/usr/jdk1.8.0_151 && export PATH=$JAVA_HOME/bin:$PATH"
  62. # g(){ gvim $1 ; }
  63. rs(){ redshift -O $(($1 * 1000)) ; }
  64. alias rx="redshift -x"