操作系统:macOS Sierra v10.12.2
我试图让R从命令行工作并遇到这个问题,可能是因为我对编码相对较新并且搞砸了我不应该拥有的东西.
开通新航站楼时:
-bash: /Users/Brad/.bash_profile: line 33: syntax error: unexpected end of file
Run Code Online (Sandbox Code Playgroud)
当我检查配置文件时,它看起来像这样:
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
# Setting PATH for Python 3.5
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH
export PATH="$HOME/.bin:$PATH"
eval "$(hub alias -s)"
prompt_ruby_info() {
if [ -f ".ruby-version" ]; then
cat .ruby-version
fi
}
GREEN=$(tput setaf 65)
ORANGE=$(tput setaf 166)
NORMAL=$(tput sgr0)
precmd () { PS1="${ORANGE}[%~] …Run Code Online (Sandbox Code Playgroud)