fish-shell/share/functions/__fish_man_page.fish
Konrad Borowski 26051ea198 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.
2014-09-28 11:12:25 +02:00

5 lines
97 B
Fish

function __fish_man_page
man (basename (commandline -po; echo)[1]) ^/dev/null
or printf \a
end