fish_apropos: manpath instead of man --path

On macOS Ventura, `man` does not take --path
This commit is contained in:
Aaron Gyes 2022-10-21 15:20:57 -07:00
parent 061f27a0bf
commit 53cb3a98fc

View file

@ -40,7 +40,7 @@ if test $status -eq 0 -a (count $sysver) -eq 3
if test $age -ge $max_age
test -d "$dir" || mkdir -m 700 -p $dir
/usr/libexec/makewhatis -o "$whatis" (man --path | string split :) >/dev/null 2>&1 </dev/null &
/usr/libexec/makewhatis -o "$whatis" (manpath | string split :) >/dev/null 2>&1 </dev/null &
disown $last_pid
end
end