ターミナルで
bash: /home/ec2-user/.bashrc: line 50: syntax error: unexpected end of file bash-4.2$
と表示されていて調べてみたんですけど原因がわかりません。
どうしたら解決できるか教えていただけませんか?
よろしくお願いいします
# .bashrc export PATH=$PATH:$HOME/.local/bin:$HOME/bin # load nvm export NVM_DIR="$HOME/.nvm" [ "$BASH_VERSION" ] && npm() { # hack: avoid slow npm sanity check in nvm if [ "$*" == "config get prefix" ]; then which node | sed "s/bin/node//"; else $(which npm) "$@"; fi } # [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm rvm_silence_path_mismatch_check_flag=1 # prevent rvm complaints that nvm is first in PATH unset npm # end hack # User specific aliases and functions alias python=python27 # modifications needed only in interactive mode if [ "$PS1" != "" ]; then # Set default editor for git git config --global core.editor /usr/bin/nano # Turn on checkwinsize shopt -s checkwinsize # keep more history shopt -s histappend export HISTSIZE=100000 export HISTFILESIZE=100000 export PROMPT_COMMAND="history -a;" # Source for Git PS1 function if ! type -t __git_ps1 && [ -e "/usr/share/git-core/contrib/completion/git-prompt.sh" ]; then . /usr/share/git-core/contrib/completion/git-prompt.sh fi # Cloud9 default prompt _cloud9_prompt_user() { if [ "$C9_USER" = root ]; then echo "$USER" else echo "$C9_USER" fi } PS1='[\033[01;32m]$(_cloud9_prompt_user)[\033[00m]:[\033[01;34m]\w[\033[00m]$(__git_ps1 " (%s)" 2>/dev/null) $ ' source $HOME/.profile > /dev/null
回答1件
あなたの回答
tips
プレビュー