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.

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