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.

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