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.

79 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 7r="cd ~/Documents/School/207/group_0485"
  29. alias ph1="cd ~/Documents/School/207/group_0485/phase1"
  30. # 221
  31. alias 221="cd ~/Documents/School/221"
  32. fi
  33. # config
  34. alias lc="cd ~/linux-config"
  35. alias vb="vi ~/.bash_aliases"
  36. alias vv="vi ~/.vimrc"
  37. alias rba=". ~/.bashrc"
  38. # git
  39. . ~/.secure
  40. alias gs="git status"
  41. alias gpl="git pull"
  42. alias gps="git push"
  43. alias vig="vi .gitignore"
  44. alias ga="git add *"
  45. alias gai="git add .gitignore"
  46. alias gd="git diff"
  47. alias gdc="git diff --cached"
  48. alias gstore="git config credential.helper store"
  49. gc(){
  50. git commit -m "$1"
  51. }
  52. alias gcm="git commit"
  53. alias gl="git log"
  54. alias gsl="git shortlog"
  55. # idea
  56. alias jh="echo $JAVA_HOME"
  57. alias jv="java -version"
  58. # alias idea=". ~/Desktop/idea.sh"
  59. # alias idea=". ~/usr/idea-IC-172.4343.14/bin/idea.sh"
  60. # alias jf="export JAVA_HOME=/home/kevin/usr/jdk1.8.0_151 && export PATH=$JAVA_HOME/bin:$PATH"
  61. g(){
  62. gvim $1
  63. }
  64. rs(){
  65. redshift -O $(($1 * 1000))
  66. }
  67. alias rx="redshift -x"