小编Bra*_*d.R的帖子

.bash_profile语法错误:意外的文件结束

操作系统: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)

unix macos bash .bash-profile macos-sierra

3
推荐指数
1
解决办法
5816
查看次数

标签 统计

.bash-profile ×1

bash ×1

macos ×1

macos-sierra ×1

unix ×1