contrib/zsh_completion
changeset 3878 729f354f3f09
parent 3817 45a751d73080
child 4441 2d3379c598c1
--- a/contrib/zsh_completion	Tue Dec 12 12:40:51 2006 -0800
+++ b/contrib/zsh_completion	Tue Dec 12 15:34:11 2006 -0600
@@ -178,6 +178,7 @@
 }
 
 _hg_status() {
+  [[ -d $PREFIX ]] || PREFIX=$PREFIX:h
   status_files=(${(ps:\0:)"$(_hg_cmd status -0n$1 ./$PREFIX 2>/dev/null)"})
 }