我和终端一直使用相同的bash_profile,其中包括posh-git。 https://github.com/lyze/posh-git-sh
然而,当我开始使用Pycharm时,编辑器的终端并没有渲染我的posh-git,而是给了我错误:
bash: __git_ps1: command not found
这是我的bash_profile:
source ~/develop/git-prompt.sh
PROMPT_COMMAND='__posh_git_ps1 "\u@\h:\w" "\\\$ ";'$PROMPT_COMMAND
PATH=$PATH:/usr/local/sbin
我尝试添加PS1="\u@\h:\w\n$ "
,但有些人建议,但无济于事。
如何让我的posh-git在pycharm中工作而不会出现此错误?