mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 00:50:37 +08: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.
5 lines
97 B
Fish
5 lines
97 B
Fish
function __fish_man_page
|
|
man (basename (commandline -po; echo)[1]) ^/dev/null
|
|
or printf \a
|
|
end
|