summary refs log tree commit diff stats
path: root/tag-zsh/config
diff options
context:
space:
mode:
Diffstat (limited to 'tag-zsh/config')
-rw-r--r--tag-zsh/config/zsh/zshrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index 63384f55..da63e647 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