summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2016-10-21 16:40:04 +0200
committerJean Delvare <jdelvare@suse.de>2016-10-21 16:40:04 +0200
commitfd5c7901eac43ada14f0d5fc84046deb1eafed50 (patch)
tree134b2d028cd958e30c9c2cb243fecc8d835e6a8e
parentd6ec084d1b62302a377fa5a1d4d968c71dbafdab (diff)
downloadquilt-fd5c7901eac43ada14f0d5fc84046deb1eafed50.tar.gz
bash_completion: Add support for command "new"
Command "new" accepts options now, add support for them.
-rw-r--r--bash_completion12
1 files changed, 11 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion
index 78e4e77..0ec1ca5 100644
--- a/bash_completion
+++ b/bash_completion
@@ -174,6 +174,16 @@ _quilt_completion()
;;
esac
;;
+ new)
+ case $prev in
+ -p)
+ COMPREPLY=( $( compgen -W "0 1 ap" -- $cur ) )
+ ;;
+ *)
+ COMPREPLY=( $( compgen -W "-p -h" -- $cur ) )
+ ;;
+ esac
+ ;;
next|previous)
COMPREPLY=( $( compgen -W "$(quilt --quiltrc - series) -h" -- $cur ) )
;;
@@ -242,7 +252,7 @@ _quilt_completion()
unapplied)
COMPREPLY=( $( compgen -W "-h $(quilt --quiltrc - series)" -- $cur ) )
;;
- fork|new|top|upgrade)
+ fork|top|upgrade)
;;
esac
return 0