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.

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