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.

77 lines
1.6 KiB

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