2016-03-10 294 views
0

所以我試圖安裝fish shell OSX優勝美地使用brew和我結束了這一點。魚:未知的命令'__fish_pwd'

[email protected] > 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 

[email protected] > 
+1

如果魚不能找到'less'或'sed',那麼你可能有一個borked'$ PATH'。 'echo $ PATH'顯示什麼? –

回答

1

解決了這一問題,通過瀏覽到尋人UI並轉到文件夾工具刪除config.fish文件:因爲我堅持任何幫助,這是極大的讚賞。