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.

96 lines
2.1 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 nau="nautilus ."
  24. else
  25. alias school="c Documents/School/"
  26. alias mt="ok ~/Documents/School/136/calc-textbook.pdf"
  27. alias rcg="c ~/Documents/coding/random-color-generator"
  28. alias dcr="c ~/Documents/coding/dcr-logger"
  29. chr() { google-chrome $1 ; }
  30. alias nem="nemo ."
  31. # 207
  32. alias 7r="c ~/Documents/School/207/group_0485"
  33. alias ph1="c ~/Documents/School/207/group_0485/phase1"
  34. # 221
  35. alias 221="c ~/Documents/School/221"
  36. # 258
  37. alias gob="c ~/Documents/School/258/going-bananas"
  38. fi
  39. # apps
  40. ok() { okular $1 ; }
  41. # config
  42. alias lc="c ~/linux-config"
  43. alias vb="vi ~/.bash_aliases"
  44. alias vv="vi ~/.vimrc"
  45. alias r=". ~/.bashrc"
  46. # git
  47. . ~/.secure
  48. alias gs="git status -u"
  49. alias gpl="git pull --rebase"
  50. alias grbc="git rebase --continue"
  51. alias gps="git push"
  52. alias vig="vi .gitignore"
  53. alias ga="git add -A *"
  54. alias gai="git add .gitignore"
  55. alias gd="git diff -w"
  56. alias gdc="git diff --cached"
  57. alias gstore="git config credential.helper store"
  58. gca(){ git commit -m "$1" ; }
  59. alias gc="git commit"
  60. alias gl="git log"
  61. alias gsl="git shortlog"
  62. alias gst="git stash"
  63. alias gstp="git stash pop"
  64. alias gclear="git stash clear"
  65. gcho() { git checkout $1 ; }
  66. gremotes() {
  67. git remote set-url --add --push origin $1
  68. git remote set-url --add --push origin $2
  69. }
  70. # idea
  71. alias jh="echo $JAVA_HOME"
  72. alias jv="java -version"
  73. # alias idea=". ~/Desktop/idea.sh"
  74. # alias idea=". ~/usr/idea-IC-172.4343.14/bin/idea.sh"
  75. # alias jf="export JAVA_HOME=/home/kevin/usr/jdk1.8.0_151 && export PATH=$JAVA_HOME/bin:$PATH"
  76. # g(){ gvim $1 ; }
  77. # md() {
  78. # multimarkdown -f -o $1.html $1.md
  79. # if $in_lab; then
  80. # ff $1.html
  81. # fi
  82. # }
  83. rs(){ redshift -O $(($1 * 1000)) ; }
  84. alias rx="redshift -x"