mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
Teach fish about rxvt's special key bindings
https://github.com/fish-shell/fish-shell/issues/657
This commit is contained in:
@@ -90,6 +90,12 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
|
||||
|
||||
# This will make sure the output of the current command is paged using the less pager when you press Meta-p
|
||||
bind \ep '__fish_paginate'
|
||||
|
||||
|
||||
# term-specific special bindings
|
||||
switch "$TERM"
|
||||
case 'rxvt*'
|
||||
bind \e\[8~ end-of-line
|
||||
bind \eOc forward-word
|
||||
bind \eOd backward-word
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user