Make alt-arrow in iTerm2 do the same thing as elsewhere

nextd-or-forward-word and such

Fixes #1836
This commit is contained in:
Fabian Homborg 2015-08-25 13:49:40 +02:00
parent b0504f7739
commit 7bfad18ec7

View File

@ -89,8 +89,8 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
bind $argv \e\[1\;5D backward-word
bind $argv \e\[1\;9A history-token-search-backward # iTerm2
bind $argv \e\[1\;9B history-token-search-forward # iTerm2
bind $argv \e\[1\;9C forward-word #iTerm2
bind $argv \e\[1\;9D backward-word #iTerm2
bind $argv \e\[1\;9C nextd-or-forward-word #iTerm2
bind $argv \e\[1\;9D prevd-or-backward-word #iTerm2
# Bash compatibility
# https://github.com/fish-shell/fish-shell/issues/89
bind $argv \e. history-token-search-backward