1
私はgit-prompt.sh
をubuntu端末に正しく設定しました。 は、以前は両方のAndroid Studioの& Ubuntuのターミナルに細かい仕事をしていたが、突然、それは Androidスタジオ端末でgitプロンプトが動作しない
- は、Android Studioの設定を削除しようとしたのAndroid Studioの端子に機能していません。
それはとても私の/etc/bash.bashrc
で台無しに何かのように見える私の.bashrc
サンプル
# 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"