diff options
author | Jean Delvare <jdelvare@suse.de> | 2016-10-21 16:40:04 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2016-10-21 16:40:04 +0200 |
commit | 51300f007d6b5a40ecd5d67dedd8922938d17d81 (patch) | |
tree | 5fc7254f1be514503a7c049214b14de2726a44eb /bash_completion | |
parent | fd5c7901eac43ada14f0d5fc84046deb1eafed50 (diff) | |
download | quilt-51300f007d6b5a40ecd5d67dedd8922938d17d81.tar.gz |
bash_completion: Improve the handling of the push command
Some options need a parameter, invite the user to provide it.
Diffstat (limited to 'bash_completion')
-rw-r--r-- | bash_completion | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion index 0ec1ca5..ec248c1 100644 --- a/bash_completion +++ b/bash_completion @@ -195,7 +195,13 @@ _quilt_completion() COMPREPLY=( $( compgen -W "-a -f -R -q -v --refresh -h $(quilt --quiltrc - applied 2>/dev/null)" -- $cur ) ) ;; push) - COMPREPLY=( $( compgen -W "-a -f -q -v -h --fuzz -m --merge --leave-rejects --color --refresh $(quilt --quiltrc - unapplied 2>/dev/null)" -- $cur ) ) + case $prev in + --fuzz) + ;; + *) + COMPREPLY=( $( compgen -W "-a -f -q -v -h --fuzz -m --merge --leave-rejects --color --refresh $(quilt --quiltrc - unapplied 2>/dev/null)" -- $cur ) ) + ;; + esac ;; refresh) case $prev in |