首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >fish:未知命令__fish_pwd

fish:未知命令__fish_pwd
EN

Stack Overflow用户
提问于 2016-03-10 08:47:27
回答 2查看 4.2K关注 0票数 0

所以我试着用brew在OSX中安装fish shell,最后我得到了这个。任何帮助都是非常感谢的,因为我被困在这里:

代码语言:javascript
复制
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-\([^/.]\)[^/]*/-\1/-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@ > 
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-03-10 09:21:47

通过浏览到finder并转到文件夹实用程序来删除config.fish文件,解决了这个问题。

票数 1
EN

Stack Overflow用户

发布于 2016-03-10 14:37:48

您可能会看到在Mac上安装Fish Shell的本教程,它是专门为Yosemite和El Capitan编写的。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35911494

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档