📌  相关文章
📜  将分支添加到 git prompt ubuntu wsl - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:48.006000             🧑  作者: Mango

代码示例1
# Add to etc/bash.bashrc or whatever yours is called.
# Resulting prompt:
#     @  ~/ ()
#    └─ # ▶
export PS1='\[\033[0;32m\]\[\033[0m\033[0;32m\]\u\[\033[0;36m\] @ \[\033[0;36m\]\h \w\[\033[0;32m\]$(__git_ps1)\n\[\033[0;32m\]└─\[\033[0m\033[0;32m\] \$\[\033[0m\033[0;32m\] ▶\[\033[0m\] '