mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03:00
Clean up error message for man wrapper when man isn't installed
Closes #5329
This commit is contained in:
@@ -3,6 +3,11 @@ function man --description "Format and display the on-line manual pages"
|
||||
# by prepending our fish datadir to man. This also ensures that man gives fish's
|
||||
# man pages priority, without having to put fish's bin directories first in $PATH
|
||||
|
||||
if not command -qs man
|
||||
echo fish: (_ "Unknown command") 'man'
|
||||
return 1
|
||||
end
|
||||
|
||||
set -l manpath
|
||||
if set -q MANPATH
|
||||
set manpath $MANPATH
|
||||
|
||||
Reference in New Issue
Block a user