Q&A
Macのターミナルでどのコマンドを入力しても、文末に【__git_ps1: command not found】と表示されてしまいます。
実行は通常通りできています。
ネットの情報を頼りに【~/.bashrc】を書き換えてみたのですが、結果は変わりませんでした。
~/.bashrc
export PATH="$PATH:~/.composer/vendor/bin" export CPPFLAGS="$CPPFLAGS -I/opt/X11/include/" export LDFLAGS="-L/opt/X11/lib" source /usr/local/etc/bash_completion.d/git-prompt.sh source /usr/local/etc/bash_completion.d/git-completion.bash GIT_PS1_SHOWDIRTYSTATE=true export PS1='[\033[32m]\u@\h[\033[00m]:[\033[34m]\w[\033[31m]$(__git_ps1)[\033[00m]\n$ ' ~ ~
どなたか対処方法をご存知でしたら、教えて頂きたいです。回答よろしくお願いいたします。
追記:~/.bash_profile
source ~/.profile export PATH=$HOME/.nodebrew/current/bin:$PATH export PATH=$HOME/.nodebrew/current/bin:$PATH export PATH=$HOME/.nodebrew/current/bin:$PATH export PATH="$PATH:$HOME/.composer/vendor/bin" export PATH=$PATH:$HOME/bin:/sbin:/usr/sbin:/usr/local/bin source ~/.bashrc # Setting PATH for Python 3.7 # The original version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}" export PATH eval "$(rbenv init -)" ~
回答2件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。
2020/01/09 03:22
2020/01/09 04:29
2020/01/09 12:23