【文件属性】:
文件名称:gitbash:更好的git使用bash设置
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-20 02:05:51
Shell
gitbash
更好的git使用bash设置
将git-prompt.sh到本地计算机中的某个位置。 例如
cd ~/.bash/
git clone https://github.com/mocheng/gitbash
然后,在您的~/.bashrc ,添加以下行
source ~/.bash/gitbash/git-prompt.sh
PS1="\u@:\w\[\e[1;32m\]\$(parse_git_branch_or_tag)\[\e[0m\]$"
现在,您的提示中显示了当前的分支名称。
【文件预览】:
gitbash-master
----LICENSE(1KB)
----.gitconfig(1023B)
----git-prompt.sh(304B)
----README.md(409B)