J'ai configuré git-prompt.sh
dans un terminal Ubuntu avec succès. Auparavant, il fonctionnait très bien dans les deux terminaux Android ubuntu studio & mais tout à coup, il ne fonctionne pas dans le terminal Android Studio estL'invite git ne fonctionnait pas dans le terminal Android Studio
- essayé de supprimer la configuration Android Studio.
mon .bashrc
échantillon
# Enable tab completion
source /home/rnztx/git/git_wiki/git-completion.bash
# colors!
cyan="\[\033[0;36m\]"
cyanD="\[\033[1;36m\]"
green="\[\033[0;32m\]"
greenD="\[\033[1;32m\]"
redD="\[\033[1;31m\]"
red="\[\033[0;31m\]"
blue="\[\033[0;34m\]"
blueD="\[\033[1;34m\]"
purple="\[\033[0;35m\]"
purpleD="\[\033[1;35m\]"
reset="\[\033[0m\]"
# Change command prompt
source /home/rnztx/git/git_wiki/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
# '\u' adds the name of the current user to the prompt
# '\$(__git_ps1)' adds git-related stuff
# '\W' adds the name of the current directory
export PS1="$purple\[email protected]\h:$green\$(__git_ps1)$green\W$ $reset"