fish:未知命令"__fish_pwd" [英] fish: Unknown command '__fish_pwd'

查看:97
本文介绍了fish:未知命令"__fish_pwd"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我试图使用brew在OSX Yosemite中安装 fish shell ,最终得到了这个结果.非常感谢您的帮助,

So I was trying to install fish shell in OSX Yosemite using brew and I ended up with this. Any help is greatly appreciated as I am stuck with this:

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@ > 

推荐答案

通过浏览到finder UI并转到文件夹实用程序来删除config.fish文件,从而解决了该问题.

Fixed the problem by deleting the config.fish file by browsing to finder UI and Go to the folder utility.

这篇关于fish:未知命令"__fish_pwd"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆