Loading

Paste #pbdzg6mya

  1. hg_ps1() {
  2.     if $(hg st > /dev/null 2>&1); then
  3.         hg log -l1 --template='{branch}-r{rev} {if(tags," ({tags})")} {if(bookmarks," ({bookmarks})")}'
  4.     fi
  5. }
  6.  
  7. export PS1='\u@\h \w $(hg_ps1) $ '

Comments