K4caesar@tg says to Ubuntu 台灣社群
在 .bahsrc 加入以下 # show git branch function parse_git_branch () { git branch 2> /dev/null | sed -e "/^[^*]/d" -e "s/* \(.*\)/(\1)/" } RED="\[\033[01;31m\]" YELLOW="\[\033[01;33m\]" GREEN="\[\033[01;32m\]" BIPurple="\[\033[1;95m\]" Cyan="\[\033[1;36m\]" NO_COLOR="\[\033[00m\]" BWhite="\[\033[1;37m\]" PS1="$RED[\A]$NO_COLOR $GREEN\u@\h$BWhite:$Cyan\w $YELLOW$(parse_git_branch)$NO_COLOR\$ "