mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 21:21:15 -03:00
__fish_apropos: assume only /usr/bin/apropos is broken
Also, remove a macOS version check that's doom to obsolescence, and extract a function (WIP).
This commit is contained in:
7
share/functions/__fish_without_manpager.fish
Normal file
7
share/functions/__fish_without_manpager.fish
Normal file
@@ -0,0 +1,7 @@
|
||||
function __fish_without_manpager
|
||||
MANPAGER=cat WHATISPAGER=cat if test "$argv[1]" = command
|
||||
command $argv[2..]
|
||||
else
|
||||
$argv
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user