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. TERM=xterm-256color
  4. xmodmap -e "clear Lock"
  5. in_lab=true
  6. fi
  7. # system
  8. alias c="clear"
  9. shopt -s dotglob
  10. alias reb="sudo shutdown -r 0"
  11. alias sd="sudo shutdown 0"
  12. alias s="systemctl suspend"
  13. # directories
  14. alias cdr="cd ~/../../"
  15. alias cdd="cd ~/Downloads"
  16. if $in_lab; then
  17. alias mt="okular ~/Downloads/Textbook.pdf"
  18. # 207
  19. alias 7r="cd ~/207/group_0485/"
  20. alias ph1="cd ~/207/group_0485/phase1"
  21. # 258
  22. alias p1="cd ~/258/258-labs-self/l7/p1"
  23. alias l7="cd ~/258/258-labs-self/l7"
  24. alias lab="cd ~/258/258-labs-self"
  25. else
  26. alias mt="okular ~/Documents/School/221/Textbook.pdf"
  27. alias rcg="cd ~/Documents/coding/random-color-generator"
  28. # 207
  29. alias 207r="cd ~/Documents/School/207/mokkar/"
  30. alias a2="cd ~/Documents/School/207/mokkar/a2/src/farmyard"
  31. alias a2n="vi ~/Documents/School/207/mokkar/a2/notes.txt"
  32. # 221
  33. alias 221="cd ~/Documents/School/221"
  34. fi
  35. # config
  36. alias lc="cd ~/linux-config"
  37. alias vb="vi ~/.bash_aliases"
  38. alias vv="vi ~/.vimrc"
  39. alias rba=". ~/.bashrc"
  40. # git
  41. . ~/.secure
  42. alias gs="git status"
  43. alias gpl="git pull"
  44. alias gps="git push"
  45. alias vig="vi .gitignore"
  46. alias ga="git add *"
  47. alias gai="git add .gitignore"
  48. alias gd="git diff"
  49. alias gdc="git diff --cached"
  50. alias gstore="git config credential.helper store"
  51. gc(){
  52. git commit -m "$1"
  53. }
  54. alias gcm="git commit"
  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"