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.

82 lines
1.8 KiB

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 "$@" && ls -a ; }
  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="c ~/207/group_0485/"
  23. alias ph1="c ~/207/group_0485/phase1"
  24. # 258
  25. alias l52="c ~/258/258-labs-self/l5/p2"
  26. alias p3="c ~/258/258-labs-self/l7/p3"
  27. alias l7="c ~/258/258-labs-self/l7"
  28. alias lab="c ~/258/258-labs-self"
  29. alias us="echo unsigned"
  30. else
  31. alias mt="okular ~/Documents/School/221/Textbook.pdf"
  32. alias rcg="c ~/Documents/coding/random-color-generator"
  33. # 207
  34. alias 7r="c ~/Documents/School/207/group_0485"
  35. alias ph1="c ~/Documents/School/207/group_0485/phase1"
  36. # 221
  37. alias 221="c ~/Documents/School/221"
  38. fi
  39. # config
  40. alias lc="c ~/linux-config"
  41. alias vb="vi ~/.bash_aliases"
  42. alias vv="vi ~/.vimrc"
  43. alias r=". ~/.bashrc"
  44. # git
  45. . ~/.secure
  46. alias gs="git status"
  47. alias gpl="git pull"
  48. alias gps="git push"
  49. alias vig="vi .gitignore"
  50. alias ga="git add *"
  51. alias gai="git add .gitignore"
  52. alias gd="git diff"
  53. alias gdc="git diff --cached"
  54. alias gstore="git config credential.helper store"
  55. gca(){ git commit -m "$1" ; }
  56. alias gc="git commit"
  57. alias gl="git log"
  58. alias gsl="git shortlog"
  59. alias gst="git stash"
  60. alias gstp="git stash pop"
  61. alias gstc="git stash clear"
  62. # idea
  63. alias jh="echo $JAVA_HOME"
  64. alias jv="java -version"
  65. # alias idea=". ~/Desktop/idea.sh"
  66. # alias idea=". ~/usr/idea-IC-172.4343.14/bin/idea.sh"
  67. # alias jf="export JAVA_HOME=/home/kevin/usr/jdk1.8.0_151 && export PATH=$JAVA_HOME/bin:$PATH"
  68. # g(){ gvim $1 ; }
  69. rs(){ redshift -O $(($1 * 1000)) ; }
  70. alias rx="redshift -x"