Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

reverted

  • Loading branch information...
commit f7e32a8ded5ad96f0ee91c315c62500d99c8d319 1 parent d5df2a8
@graysky2 authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 dotfiles/shell/.zsh/lib/keys.zsh
View
5 dotfiles/shell/.zsh/lib/keys.zsh
@@ -2,6 +2,9 @@ bindkey -v # set vim bindings http://zshwiki.org/home/zle/bindkeys
typeset -A key
+bindkey "^[[A" history-beginning-search-backward
+bindkey "^[[B" history-beginning-search-forward
+
key[Home]=${terminfo[khome]}
key[End]=${terminfo[kend]}
key[Insert]=${terminfo[kich1]}
@@ -19,8 +22,6 @@ key[Enter]=${terminfo[kent]}
[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line
[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode
[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char
-[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" history-beginning-search-backward
-[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" history-beginning-search-forward
[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char
[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
[[ -n "${key[Enter]}" ]] && bindkey "${key[Enter]}" enter
Please sign in to comment.
Something went wrong with that request. Please try again.