mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
26051ea198
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.
4 lines
97 B
Fish
4 lines
97 B
Fish
function __fish_man_page
|
|
man (basename (commandline -po; echo)[1]) ^/dev/null
|
|
or printf \a
|
|
end
|