Browse Source

Zsh: bound history search to arrow keys

red-hat-laptop
Kevin Mok 7 years ago
parent
commit
71f3fb96fc
  1. 7
      aliases/zsh_aliases

7
aliases/zsh_aliases

@ -14,6 +14,10 @@ export KEYTIMEOUT=1
# }}} vim mode # # }}} vim mode #
# command line related {{{ # # command line related {{{ #
# search history
bindkey '\e[A' history-beginning-search-backward
bindkey '\e[B' history-beginning-search-forward
alias cs='printf "\033c"' alias cs='printf "\033c"'
alias hst="history" alias hst="history"
alias nf="neofetch" alias nf="neofetch"
@ -364,6 +368,7 @@ function cptp() {
# 136 {{{ # 136 {{{
alias clc="gcalccmd" alias clc="gcalccmd"
alias mt="ok ~/Documents/School/calc-textbook.pdf" alias mt="ok ~/Documents/School/calc-textbook.pdf"
alias mt2="ok ~/Documents/School/calc-textbook-2.pdf"
alias 136="$cd_school/136" alias 136="$cd_school/136"
alias 136l="$cd_school/136/lecture" alias 136l="$cd_school/136/lecture"
@ -375,7 +380,7 @@ alias pr3="$cd_school/136/par/3"
cd_209="f ~/Documents/School/209"; cd_209="f ~/Documents/School/209";
alias 209="$cd_209" alias 209="$cd_209"
alias 9r="$cd_209/mokkar" alias 9r="$cd_209/mokkar"
alias l9="$cd_209/mokkar/lab9"
alias 9l="$cd_209/mokkar/lab10"
alias 9a="$cd_209/mokkar/a3" alias 9a="$cd_209/mokkar/a3"
# }}} # }}}

Loading…
Cancel
Save