鱼:未知命令“__fish_pwd”

fish: Unknown command '__fish_pwd'

所以我尝试使用 brew 在 OSX Yosemite 中安装 fish shell,最后我得到了这个。非常感谢任何帮助,因为我坚持这个:

mona@ > history
fish: Unknown command '__fish_pwd'
fish: echo $_ " "; __fish_pwd
                   ^
in command substitution
    called on standard input

fish: Unknown command 'less'
- (line 1): begin; less 
                   ^
from sourcing file -
    called on line 60 of file /usr/local/Cellar/fish/2.2.0/share/fish/functions/eval.fish

in function 'eval'
    called on line 42 of file /usr/local/Cellar/fish/2.2.0/share/fish/functions/history.fish

in function 'history'
    called on standard input

fish: Unknown command 'sed'
/usr/local/Cellar/fish/2.2.0/share/fish/functions/prompt_pwd.fish (line 2):     echo $PWD | sed -e "s|^$realhome|~|" $args_pre -e 's-\([^/.]\)[^/]*/-/-g' $args_post
                                                                                            ^
in function 'prompt_pwd'
    called on line 6 of file /usr/local/Cellar/fish/2.2.0/share/fish/functions/fish_prompt.fish

in command substitution
    called on line 4 of file /usr/local/Cellar/fish/2.2.0/share/fish/functions/fish_prompt.fish

in function 'fish_prompt'
    called on standard input

in command substitution
    called on standard input

fish: Unknown command '__fish_pwd'
fish: echo $_ " "; __fish_pwd
                   ^
in command substitution
    called on standard input

mona@ > 

已通过浏览至查找器 UI 并转到文件夹实用程序删除 config.fish 文件解决了该问题。

您可以查看 Installing Fish Shell on Mac OS X 的教程,它是专门为 Yosemite 和 El Capitan 编写的。