|
@ -17,6 +17,7 @@ export KEYTIMEOUT=1 |
|
|
# search history |
|
|
# search history |
|
|
bindkey '\e[A' history-beginning-search-backward |
|
|
bindkey '\e[A' history-beginning-search-backward |
|
|
bindkey '\e[B' history-beginning-search-forward |
|
|
bindkey '\e[B' history-beginning-search-forward |
|
|
|
|
|
function src() { source $1 ; } |
|
|
|
|
|
|
|
|
alias cs='printf "\033c"' |
|
|
alias cs='printf "\033c"' |
|
|
alias hst="history" |
|
|
alias hst="history" |
|
@ -63,6 +64,7 @@ alias "f."="f .." |
|
|
alias "f.2"="f ..." |
|
|
alias "f.2"="f ..." |
|
|
|
|
|
|
|
|
alias fd="f ~/Downloads" |
|
|
alias fd="f ~/Downloads" |
|
|
|
|
|
function mvd() { mv $1 ~/Downloads ; } |
|
|
alias fds="f ~/Downloads/sch" |
|
|
alias fds="f ~/Downloads/sch" |
|
|
alias doc="f ~/Documents" |
|
|
alias doc="f ~/Documents" |
|
|
alias cfg="f ~/.config" |
|
|
alias cfg="f ~/.config" |
|
@ -145,7 +147,7 @@ function py() { python $1 ; } |
|
|
# device specific {{{ # |
|
|
# device specific {{{ # |
|
|
|
|
|
|
|
|
# NZXT {{{ |
|
|
# NZXT {{{ |
|
|
if [ "$(hostname)" = "NZXT" ]; then |
|
|
|
|
|
|
|
|
if [ "$(hostname)" = "nzxt" ]; then |
|
|
|
|
|
|
|
|
# rotate monitor {{{ # |
|
|
# rotate monitor {{{ # |
|
|
function rt() { |
|
|
function rt() { |
|
@ -223,11 +225,10 @@ if [ "$(hostname)" = "NZXT" ]; then |
|
|
# }}} resume # |
|
|
# }}} resume # |
|
|
|
|
|
|
|
|
# }}} various coding projs # |
|
|
# }}} various coding projs # |
|
|
fi |
|
|
|
|
|
# NZXT }}} |
|
|
# NZXT }}} |
|
|
|
|
|
|
|
|
# laptop {{{ |
|
|
# laptop {{{ |
|
|
if [[ "$(hostname)" = "X1-Carbon" ]]; then |
|
|
|
|
|
|
|
|
elif [[ "$(hostname)" = "X1-Carbon" ]]; then |
|
|
alias gbl="xbacklight -get" |
|
|
alias gbl="xbacklight -get" |
|
|
function bl() { xbacklight -set $(echo "scale=2;$1*10" | bc) ; } |
|
|
function bl() { xbacklight -set $(echo "scale=2;$1*10" | bc) ; } |
|
|
|
|
|
|
|
@ -238,9 +239,22 @@ if [[ "$(hostname)" = "X1-Carbon" ]]; then |
|
|
|
|
|
|
|
|
alias plz="f ~/platterz2018/ocr-reader/app/src/main/java/com/google/android/gms/samples/vision/ocrreader" |
|
|
alias plz="f ~/platterz2018/ocr-reader/app/src/main/java/com/google/android/gms/samples/vision/ocrreader" |
|
|
alias ans="f /usr/local/android-studio/bin/" |
|
|
alias ans="f /usr/local/android-studio/bin/" |
|
|
fi |
|
|
|
|
|
# laptop }}} |
|
|
# laptop }}} |
|
|
|
|
|
|
|
|
|
|
|
# ubuntu {{{ |
|
|
|
|
|
|
|
|
|
|
|
elif [ "$(hostname)" = "nzxt-ubuntu" ]; then |
|
|
|
|
|
|
|
|
|
|
|
# Stardew Valley {{{ |
|
|
|
|
|
alias sdv="f ~/Documents/sdv-save" |
|
|
|
|
|
function svmd() { f ~/.local/share/Steam/steamapps/common/Stardew\ Valley/Mods ; } |
|
|
|
|
|
function svm() { mv $1 ~/.local/share/Steam/steamapps/common/Stardew\ Valley/Mods ; } |
|
|
|
|
|
# }}} |
|
|
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# }}} |
|
|
|
|
|
|
|
|
# }}} device specific # |
|
|
# }}} device specific # |
|
|
|
|
|
|
|
|
# git {{{ # |
|
|
# git {{{ # |
|
@ -255,6 +269,7 @@ alias gac="git add -A . && git commit" |
|
|
# diff/log {{{ # |
|
|
# diff/log {{{ # |
|
|
alias gd="git diff -w" |
|
|
alias gd="git diff -w" |
|
|
alias gdc="git diff --cached" |
|
|
alias gdc="git diff --cached" |
|
|
|
|
|
alias gds="git diff --stat" |
|
|
alias gl="git log" |
|
|
alias gl="git log" |
|
|
alias gsl="git shortlog" |
|
|
alias gsl="git shortlog" |
|
|
# }}} diff/log # |
|
|
# }}} diff/log # |
|
|