git 彩色显示当前branch
2014-11-24 22:42
190 查看
环境: fedora 20
$ curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh ############################## 以下内容放入 ~/.bashrc ################################ source ~/.git-prompt.sh # Bash completion if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi export GIT_PS1_SHOWDIRTYSTATE=1 export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] ' ################################################################### $ source ~/.bashrc
相关文章推荐
- git 彩色显示当前branch
- 自定义iTerm2标题栏和bash显示当前git branch信息
- cshell命令行显示当前git branch名字
- 在Terminal中显示git的当前branch
- shell提示符显示git当前分支
- 在Mac、Linux 终端显示 Git 当前所在分支
- 通过git describe --tags 查询当前branch是从那个tag建立的
- git 彩色显示
- 在Mac、Linux 终端显示 Git 当前所在分支
- Terminal git 显示当前分支
- git在MAC,Linux的terminator(命令行)下自动显示当前分支
- 让svn diff显示出git diff的彩色效果
- 修改 ~/.bashrc显示 git 当前分支
- repo sync同步下来之后,git branch 显示“no branches”
- Git备份当前branch并回滚到当前版本
- SecureCRT 中 Git 彩色显示
- 让terminal显示git所在的当前分支名
- 如何在linux console中显示当前你在的branch?
- Shell 显示所在项目当前git分支及状态
- 如何在linux console中显示当前你在的branch?