From 71f3fb96fcf3a54fbdd054d78180fb28d9bea9fe Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Fri, 23 Mar 2018 14:27:12 -0400 Subject: [PATCH] Zsh: bound history search to arrow keys --- aliases/zsh_aliases | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aliases/zsh_aliases b/aliases/zsh_aliases index 65a0067..964e966 100644 --- a/aliases/zsh_aliases +++ b/aliases/zsh_aliases @@ -14,6 +14,10 @@ export KEYTIMEOUT=1 # }}} vim mode # # command line related {{{ # +# search history +bindkey '\e[A' history-beginning-search-backward +bindkey '\e[B' history-beginning-search-forward + alias cs='printf "\033c"' alias hst="history" alias nf="neofetch" @@ -364,6 +368,7 @@ function cptp() { # 136 {{{ alias clc="gcalccmd" alias mt="ok ~/Documents/School/calc-textbook.pdf" +alias mt2="ok ~/Documents/School/calc-textbook-2.pdf" alias 136="$cd_school/136" alias 136l="$cd_school/136/lecture" @@ -375,7 +380,7 @@ alias pr3="$cd_school/136/par/3" cd_209="f ~/Documents/School/209"; alias 209="$cd_209" alias 9r="$cd_209/mokkar" -alias l9="$cd_209/mokkar/lab9" +alias 9l="$cd_209/mokkar/lab10" alias 9a="$cd_209/mokkar/a3" # }}}