aboutsummaryrefslogtreecommitdiffhomepage
path: root/etc/fish_inputrc
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-02-17 20:13:39 +1000
committerGravatar axel <axel@liljencrantz.se>2006-02-17 20:13:39 +1000
commit343cafef346543282b5b6e825bc8f9dd10028a48 (patch)
tree1bcf221ecb525c7aeadc8325e7b780d3656e544b /etc/fish_inputrc
parent95a01f3c8f15034433ffce368d8f2d13d925139c (diff)
Redo installation file structure, move lots of things to $PREFIX/share/fish
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz
Diffstat (limited to 'etc/fish_inputrc')
-rw-r--r--etc/fish_inputrc28
1 files changed, 28 insertions, 0 deletions
diff --git a/etc/fish_inputrc b/etc/fish_inputrc
new file mode 100644
index 00000000..fefdd55e
--- /dev/null
+++ b/etc/fish_inputrc
@@ -0,0 +1,28 @@
+#
+# 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
+ "\C-d": delete-or-exit
+# This will make sure the output of the current command is paged using the less pager when you press Meta-p
+ "\M-p": if commandline -j|grep -v 'less *$' >/dev/null; commandline -aj "|less;"; end
+$endif
+
+# Include user-specific inputrc file after including fish-specific
+# bindings so that they will override fish defaults
+
+$include ~/.inputrc