mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
add bindings for PuTTY's I-can't-believe-it's-xterm keyboard
(see #170)
This commit is contained in:
parent
0de26732bf
commit
14b6d32fe6
1 changed files with 8 additions and 2 deletions
|
@ -32,6 +32,12 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
|
||||||
bind \e\[H beginning-of-line
|
bind \e\[H beginning-of-line
|
||||||
bind \e\[F end-of-line
|
bind \e\[F end-of-line
|
||||||
|
|
||||||
|
# for PuTTY
|
||||||
|
# https://github.com/fish-shell/fish-shell/issues/180
|
||||||
|
bind \e\[1~ beginning-of-line
|
||||||
|
bind \e\[3~ delete-char
|
||||||
|
bind \e\[4~ end-of-line
|
||||||
|
|
||||||
# OS X SnowLeopard doesn't have these keys. Don't show an annoying error message.
|
# OS X SnowLeopard doesn't have these keys. Don't show an annoying error message.
|
||||||
bind -k home beginning-of-line 2> /dev/null
|
bind -k home beginning-of-line 2> /dev/null
|
||||||
bind -k end end-of-line 2> /dev/null
|
bind -k end end-of-line 2> /dev/null
|
||||||
|
|
Loading…
Reference in a new issue