【发布时间】:2021-04-18 15:11:26
【问题描述】:
在fish中运行任何命令时,我收到以下错误:
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)
^
不确定如何解决这个问题。我试过卸载/重新安装fish。
我见过的其他解决方案 (fish: Unknown command '__fish_pwd') 建议删除 config.fish,但除了我的 PATH 之外,我的中没有任何内容。
我的$PATH 看起来像这样:
/sbin /opt/homebrew/bin /opt/homebrew/sbin /Users/[username]/usr/bin /bin /Users/[username]/bin /Users/[username]/sbin /sbin
【问题讨论】:
-
文件
/opt/homebrew/Cellar/fish/3.2.2/share/fish/functions/__fish_pwd.fish是否存在? (它应该)。echo $fish_function_path显示什么? -
@ridiculous_fish 是的,该文件确实存在。这是
echo $fish_function_path返回的内容:gist.github.com/tbhockey/a5f6e82070ffdf0d11475ffc8fe3ed48 -
uname说什么?
标签: macos homebrew fish apple-m1