This website requires JavaScript.
Explore
Help
Sign In
Mirrors
/
fish-shell
Watch
2
Star
0
Fork
You've already forked fish-shell
0
mirror of
https://github.com/fish-shell/fish-shell
synced
2025-01-01 15:48:45 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
8324893565
fish-shell
/
share
/
functions
/
__fish_man_page.fish
5 lines
103 B
Fish
Raw
Normal View
History
Unescape
Escape
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 09:09:14 +00:00
function
__fish_man_page
reformat all fish scripts I hate doing this but I am tired of touching a fish script as part of some change and having `make style` radically change it. Which makes editing fish scripts more painful than it needs to be. It is time to do a wholesale reformatting of these scripts to conform to the documented style as implemented by the `fish_indent` program.
2016-11-28 05:27:22 +00:00
man
(
basename
(
commandline
-po
;
echo
)
[
1
]
)
^
/dev/null
or
printf
\a
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 09:09:14 +00:00
end
Reference in a new issue
Copy permalink