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.

110 lines
2.5 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="ok ~/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 school="c Documents/School/"
  42. alias mt="ok ~/Documents/School/136/calc-textbook.pdf"
  43. alias rcg="c ~/Documents/coding/random-color-generator"
  44. alias dcr="c ~/Documents/coding/dcr-logger"
  45. chr() { google-chrome $1 ; }
  46. alias nem="nemo ."
  47. # 207
  48. alias 7r="c ~/Documents/School/207/group_0485"
  49. alias ph1="c ~/Documents/School/207/group_0485/phase1"
  50. # 221
  51. alias 221="c ~/Documents/School/221"
  52. # 258
  53. alias gob="c ~/Documents/School/258/going-bananas"
  54. fi
  55. # apps
  56. ok() { okular $1 ; }
  57. # config
  58. alias lc="c ~/linux-config"
  59. alias vb="vi ~/.bash_aliases"
  60. alias vv="vi ~/.vimrc"
  61. alias r=". ~/.bashrc"
  62. # git
  63. . ~/.secure
  64. alias gs="git status -u"
  65. alias gpl="git pull"
  66. alias gps="git push"
  67. alias vig="vi .gitignore"
  68. alias ga="git add *"
  69. alias gai="git add .gitignore"
  70. alias gd="git diff"
  71. alias gdc="git diff --cached"
  72. alias gstore="git config credential.helper store"
  73. gca(){ git commit -m "$1" ; }
  74. alias gc="git commit"
  75. alias gl="git log"
  76. alias gsl="git shortlog"
  77. alias gst="git stash"
  78. alias gstp="git stash pop"
  79. alias gclear="git stash clear"
  80. # idea
  81. alias jh="echo $JAVA_HOME"
  82. alias jv="java -version"
  83. # alias idea=". ~/Desktop/idea.sh"
  84. # alias idea=". ~/usr/idea-IC-172.4343.14/bin/idea.sh"
  85. # alias jf="export JAVA_HOME=/home/kevin/usr/jdk1.8.0_151 && export PATH=$JAVA_HOME/bin:$PATH"
  86. # g(){ gvim $1 ; }
  87. # md() {
  88. # multimarkdown -f -o $1.html $1.md
  89. # if $in_lab; then
  90. # ff $1.html
  91. # fi
  92. # }
  93. rs(){ redshift -O $(($1 * 1000)) ; }
  94. alias rx="redshift -x"