bash_completion: recognize normal command abbreviations
authorBryan O'Sullivan <bryano@fb.com>
Thu, 21 Mar 2013 21:07:22 -0700
changeset 18794 63dc020e8cb7
parent 18793 a821ec835223
child 18795 704229c06dcf
bash_completion: recognize normal command abbreviations In many common cases, this eliminates a call to "hg help" to get a complete command name, thus improving responsiveness.
contrib/bash_completion
--- a/contrib/bash_completion	Thu Mar 21 16:31:29 2013 -0700
+++ b/contrib/bash_completion	Thu Mar 21 21:07:22 2013 -0700
@@ -229,7 +229,7 @@
 	    fi
 	    _hg_labels
 	;;
-	manifest|update)
+	manifest|update|up|checkout|co)
 	    _hg_labels
 	;;
 	pull|push|outgoing|incoming)
@@ -245,10 +245,10 @@
 	merge)
 	    _hg_labels
 	;;
-	commit|record)
+	commit|ci|record)
 	    _hg_status "mar"
 	;;
-	remove)
+	remove|rm)
 	    _hg_debugpathcomplete -n
 	;;
 	forget)