From 242e87a0eb6c5e452f5132e0aad08f7f3cec204f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 31 Jul 2016 18:27:12 +0200 Subject: Bind directory history keys more portably --- tag-zsh/config/zsh/zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tag-zsh/config') diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc index 63384f5..da63e64 100644 --- a/tag-zsh/config/zsh/zshrc +++ b/tag-zsh/config/zsh/zshrc @@ -62,6 +62,8 @@ alias lal="ll -A" alias lla="lal" alias llr="ll -t" +zmodload zsh/terminfo + bindkey '\e[3~' delete-char bindkey '\C-hd' describe-key-briefly @@ -183,8 +185,8 @@ fi if zplug check alanpearce/zsh-directory-history then unsetopt flow_control # Let me use ^S and ^Q - bindkey '\e[B' directory-history-search-backward - bindkey '\e[A' directory-history-search-forward + bindkey "$terminfo[kcuu1]" directory-history-search-backward + bindkey "$terminfo[kcud1]" directory-history-search-forward bindkey -M emacs '^R' history-substring-search-up bindkey -M emacs '^S' history-substring-search-down -- cgit 1.4.1