2013-02-26 24 views
0

我得到这个在我的提示:的.bash_profile:没有这样的文件或目录

-bash: source/Users/sean/.bash_profile: No such file or directory 
-bash: /Users/sean/.bash_profile: line 3: syntax error near unexpected token `newline' 
-bash: /Users/sean/.bash_profile: line 3: `PS1=\w >' 
Seans-MacBook-Pro:~ sean$ source .bash_profile 
-bash: source/Users/sean/.bash_profile: No such file or directory 
-bash: .bash_profile: line 3: syntax error near unexpected token `newline' 
-bash: .bash_profile: line 3: `PS1=\w > 

当我打开的.bash_profile这是它说

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source/Users/seanlanning/.bash_profile "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* 
PS1=\w > 
PS1='\w >' 

不知道是什么我搞砸了,什么.bash_profile应该喜欢

回答

1

在行

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source/Users/seanlanning/.bash_profile "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* 

你需要source/Users...

之间的空间
0

检查以确保你没有行合并:

export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/sbin:/usr/sbin

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function

什么操作系统

0

此行

应该

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 
相关问题