Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
Paste #pbdzg6mya
Wrap
Raw
Revise
hg_ps1() {
if $(hg st > /dev/null 2>&1); then
hg log -l1 --template='{branch}-r{rev} {if(tags," ({tags})")} {if(bookmarks," ({bookmarks})")}'
fi
}
export PS1='\u@\h \w $(hg_ps1) $ '
Comments