Commits

Shlomi Fish committed 2381df3

Add the Mercurial branch to the prompt.

Comments (0)

Files changed (2)

shlomif-settings/Bash/Themes/common/hg.bash

     )
     cd "$this"
 }
+
+__hg_ps1()
+{
+    hg prompt "{ on {branch}}{ at {bookmark}}{status}" 2> /dev/null
+}
+
+__hg_prompt_branch()
+{
+    hg prompt "{branch}" 2> /dev/null
+}

shlomif-settings/Bash/Themes/themes/homepage/source.bash

 
 export PATH="$HOME/apps/quadpres/bin:$PATH"
 
-PS1="\\u[homepage]:\$(prompt)\\$ "
+PS1="\\u[homepage@\$(__hg_prompt_branch)]:\$(prompt)\\$ "