fish-shell/init/fish_inputrc
axel 7ddecde543 Add subdirectories
darcs-hash:20050920133155-ac50b-9a14c6c664dd03afbe8e15e7c7998fcfb5c3c750.gz
2005-09-20 23:31:55 +10:00

36 lines
1.2 KiB
Text

#
# 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
"\C-d": __fish_delete_or_exit
"\M-d": if test -z (commandline); dirh; else; commandline -f kill-word; end
"\e\eOD": if test -z (commandline); prevd; else; commandline -f backward-word; end
"\e\eOC": if test -z (commandline); nextd; else; commandline -f forward-word; end
"\eO3D": if test -z (commandline); prevd; else; commandline -f backward-word; end
"\eO3C": if test -z (commandline); nextd; else; commandline -f forward-word; end
"\e[3D": if test -z (commandline); prevd; else; commandline -f backward-word; end
"\e[3C": if test -z (commandline); nextd; else; commandline -f forward-word; end
$endif
# Include user-specific inputrc file after including fish-specific
# bindings so that they will override fish defaults
$include ~/.inputrc