show in which branch you are currently working, if you are using git, on your terminal.
give this
export PS1="\[\033[00m\]\u@\h\[\033[00m\]:\[\033[00m\]\w\[\033[00m\] \`ruby -e \"print (%x{git branch 2> /dev/null}.split(%r{\n}).grep(/^\*/).first || '').gsub(/^\* (.+)$/, '[\1] ')\"\`\[\033[00m\]$\[\033[00m\] "
in you bash_profile or bashrc profile.
No comments:
Post a Comment