Reputation: 1985
When running any commands in fish I am getting the following error:
fish: Unknown command: __fish_pwd
/opt/homebrew/Cellar/fish/3.2.2/share/fish/functions/fish_title.fish (line 1):
__fish_pwd
^
in command substitution
called on line 6 of file /opt/homebrew/Cellar/fish/3.2.2/share/fish/functions/fish_title.fish
in function 'fish_title' with arguments 'echo\ \$PATH'
in command substitution
/opt/homebrew/Cellar/fish/3.2.2/share/fish/functions/fish_title.fish (line 6): Unknown error while evaluating command substitution
echo (set -q argv[1] && echo $argv[1] || status current-command) (__fish_pwd)
^
Not really sure how to resolve this. I've tried uninstalling/reinstalling fish.
Other solutions i've seen (fish: Unknown command '__fish_pwd') suggest deleting config.fish
, but there's nothing in mine except my PATH.
My $PATH
looks like this:
/sbin /opt/homebrew/bin /opt/homebrew/sbin /Users/[username]/usr/bin /bin /Users/[username]/bin /Users/[username]/sbin /sbin
Upvotes: 1
Views: 2025
Reputation: 15934
This looks like your $PATH is broken because it doesn't contain uname
.
It's probably in /usr/bin or /usr/sbin ("/usr" is not /Users), which you're missing.
(fish uses uname
here to determine whether you're on Cygwin, in which case it would alter the $PWD it prints in the title. That's of course supremely cheesy and the error message is "unknown error" which should be improved. Regardless, your $PATH is not complete so you should fix it)
but there's nothing in mine except my PATH.
Please try removing that and restarting all your fish sessions. Most likely that'll fix the issue.
Upvotes: 3