chiark / gitweb /
Modify bash completion to support help, version, and copyright.
authorTed Pavlic <ted@tedpavlic.com>
Tue, 20 Jan 2009 00:46:12 +0000 (19:46 -0500)
committerKarl Hasselström <kha@treskal.com>
Thu, 22 Jan 2009 23:01:01 +0000 (00:01 +0100)
commite22e6f480424f733fd910d96b0fcbfeee4520f69
tree9ce27a6ed123a7c7d827545ae7c5ed5a6703b12c
parent41c1c59c50e84717e44bb41d6c058f31b848e38b
Modify bash completion to support help, version, and copyright.

"stg <tab>" lists all commands, including "help", "version", and
"copyright".

"stg he<tab>" completes "stg help "
"stg ver<tab>" completes "stg version "
"stg copy<tab>" completes "stg copyright "

"stg help <tab>" lists all commands /other than/ help, version, and
copyright.

"stg version <tab>" goes directly to shell completion.
"stg copyright <tab>" goes directly to shell completion.

Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/completion.py