Commits

Anonymous committed f7cbb2f

adding git current branch to prompt

  • Participants
  • Parent commits 18617c1

Comments (0)

Files changed (1)

 alias gbra="git branch"
 alias gdiff="git diff"
 
+function parse_git_branch() {
+    git branch 2>/dev/null | grep '^*'| tr -d [:space:] | tr -d \"*\"
+}
+PS1="\w:\[\033[0;37m\] ($(parse_git_branch))$(tput sgr0)\$ "