From 26051ea1984ee6f6329d46eb3c001a5d2bfe1bae Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Sun, 28 Sep 2014 11:09:14 +0200 Subject: Add Meta+H as keybinding for man page. Apparently, in zsh, Meta+H can be used to display the manpage for the current command. This commit adds this zsh feature to fish shell. The F1 keybinding is left, although it's now secondary according to fish help, as some terminal emulators don't let the user press F1 key. --- share/functions/__fish_man_page.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 share/functions/__fish_man_page.fish (limited to 'share/functions/__fish_man_page.fish') diff --git a/share/functions/__fish_man_page.fish b/share/functions/__fish_man_page.fish new file mode 100644 index 00000000..17a90315 --- /dev/null +++ b/share/functions/__fish_man_page.fish @@ -0,0 +1,4 @@ +function __fish_man_page + man (basename (commandline -po; echo)[1]) ^/dev/null + or printf \a +end -- cgit v1.2.3