New answers tagged

3

You can make the output of hg_ps1 be conditional on the results of the hg command e.g. hg_ps1() { typeset prmpt=$(hg prompt "{patch}" 2>/dev/null) [[ -n "$prmpt" ]] && echo " ($prmpt)" }



Top 50 recent answers are included