diff options
author | Junichi Uekawa <dancer@netfort.gr.jp> | 2012-03-09 07:05:08 +0900 |
---|---|---|
committer | Junichi Uekawa <dancer@netfort.gr.jp> | 2012-03-09 07:05:08 +0900 |
commit | 3fa99931f655782ef9d80bc922175b073d620c68 (patch) | |
tree | ab018f0c4140e3e758c96cd927d65a0d1c219982 /bash_completion.d | |
parent | f3f00357ae2062f14863949a75bab82b26b8346f (diff) | |
download | pbuilder-3fa99931f655782ef9d80bc922175b073d620c68.tar pbuilder-3fa99931f655782ef9d80bc922175b073d620c68.tar.gz |
Revert "Bug#659581: pbuilder: does not autocomplete filename in all cases correctly"
This reverts commit 8ee2feeca1df91e0a5f1cdb8762ebb5da4f1aaa3.
Diffstat (limited to 'bash_completion.d')
-rw-r--r-- | bash_completion.d/pbuilder | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bash_completion.d/pbuilder b/bash_completion.d/pbuilder index 9cf4571..1338411 100644 --- a/bash_completion.d/pbuilder +++ b/bash_completion.d/pbuilder @@ -14,14 +14,14 @@ _pbuilder() COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} - options='--create --update --build --login --execute --dumpconfig create update build login execute dumpconfig' + options='--create --update --build --login --execute --dumpconfig' if [ $COMP_CWORD -eq 1 ]; then COMPREPLY=( $( compgen -W "$options" | grep "^$cur" ) ) - elif [ "${COMP_WORDS[1]}" = --build -o "${COMP_WORDS[1]}" = build ]; then + elif [ "${COMP_WORDS[1]}" = --build ]; then COMPREPLY=( $( compgen -o filenames -G "$cur*.dsc" ) ) fi return 0 } -[ "$have" ] && complete -F _pbuilder -o filenames -o plusdirs pbuilder +[ "$have" ] && complete -F _pbuilder -o filenames pbuilder |