2段bashとGitブランチ表示をやる
Posted on by おきん
2段bashとGitブランチ表示をやる
Ubuntu 18.04の場合
.bashrcの末尾に追記
# source ~/.git-prompt.sh
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
if [ -f /etc/bash_completion.d/git-prompt ]; then
export PS1='\[\033[01;32m\]\u@\h\[\033[01;33m\] \w$(__git_ps1) \n\[\033[01;34m\]\$\[\033[00m\] '
else
…