diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-04-28 14:36:11 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-04-28 14:36:11 -0700 |
commit | ab385cd6099fdf8e4b1bd838718cb8ebab7cadb9 (patch) | |
tree | 73e8da4e9bae7bba93f8455f88b5ceddeae41343 /share/functions/fish_default_key_bindings.fish | |
parent | 0f12f2b6b144001b4b47a0655d276a92fc192195 (diff) |
Teach fish about rxvt's special key bindings
Diffstat (limited to 'share/functions/fish_default_key_bindings.fish')
-rw-r--r-- | share/functions/fish_default_key_bindings.fish | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish index 80d53830..18b7318e 100644 --- a/share/functions/fish_default_key_bindings.fish +++ b/share/functions/fish_default_key_bindings.fish @@ -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 - |