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.

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