Closed languitar closed 2 years ago
It seems like there's a switch for that specific case: https://fishshell.com/docs/current/cmds/type.html
-q or --query Suppresses all output; this is useful when testing the exit status. For compatibility with old fish versions this is also --quiet.
Could you check if type -q
also works and change the PR if that's the case?
Unfortunately that doesn't work in combination with -P
:
$ type -q -P homeshick
type: invalid option combination
Roger that, merged.
With a recent system update, type -P in fish shell started printing an error message in case no homeshick binary exists on PATH. This is an expected condition in the homeshick fish wrapper and therefore the error message should probably not reach the user.