2013-02-26 22 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" 
相關問題