2005-09-20 13:31:55 +00:00
|
|
|
#
|
|
|
|
# This file contains key bindings for fish
|
|
|
|
#
|
|
|
|
|
|
|
|
# Include system-wide inputrc file before including fish-specific key
|
|
|
|
# bindings if it exists
|
|
|
|
|
|
|
|
$include /etc/inputrc
|
|
|
|
|
|
|
|
$if fish
|
|
|
|
"\M-l": __fish_list_current_token
|
|
|
|
"\M-w": set tok (commandline -pt); if test $tok[1]; whatis $tok[1]; end
|
|
|
|
"\C-l": clear
|
|
|
|
"\C-c": delete-line
|
|
|
|
"\C-u": backward-kill-line
|
|
|
|
"\M-d": kill-word
|
|
|
|
"\C-w": backward-kill-word
|
|
|
|
"\M-k": dump-functions
|
|
|
|
"\M-d": if test -z (commandline); dirh; else; commandline -f kill-word; end
|
2005-09-20 23:42:00 +00:00
|
|
|
"\C-d": delete-or-exit
|
2005-10-07 14:36:31 +00:00
|
|
|
# This will make sure the output of the current command is paged using the less pager when you press Meta-p
|
2005-12-14 14:09:06 +00:00
|
|
|
"\M-p": if commandline -j|grep -v 'less *$' >/dev/null; commandline -aj "|less;"; end
|
2005-09-20 13:31:55 +00:00
|
|
|
$endif
|
|
|
|
|
|
|
|
# Include user-specific inputrc file after including fish-specific
|
|
|
|
# bindings so that they will override fish defaults
|
|
|
|
|
|
|
|
$include ~/.inputrc
|