From d56a6ff7ee9e15ad0ec233aff4729fb33a735089 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Wed, 24 Nov 2010 17:52:25 +0100 Subject: [PATCH] Use Arrow for nagivate into history --- .zsh/00_basic.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zsh/00_basic.zsh b/.zsh/00_basic.zsh index a84be23..dc0f3be 100644 --- a/.zsh/00_basic.zsh +++ b/.zsh/00_basic.zsh @@ -11,6 +11,12 @@ setopt -h histappend PROMPT_COMMAND='history -a' setopt append_history autocd extendedglob nomatch + +#Doing this, only past commands beginning with the current input would've been shown. +bindkey "^[[A" history-search-backward +bindkey "^[[B" history-search-forward + + unsetopt beep #force emacs binding for tmux && screen bindkey -e