的.bash_profile:没有这样的文件或目录
问题描述:
我得到这个在我的提示:的.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应该喜欢?
答
在行
[[ -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...
答
检查以确保你没有行合并:
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
什么操作系统?
答
此行
应该
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"