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.

85 lines
1.8 KiB

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