aboutsummaryrefslogtreecommitdiff
path: root/bash_completion.d
diff options
context:
space:
mode:
authorAndreas Henriksson <andreas@fatal.se>2015-06-22 10:47:25 +0200
committerAndreas Henriksson <andreas@fatal.se>2015-06-22 11:08:30 +0200
commitcd06be663f258ba7a6e7cf1e0b6af38e0a57f8eb (patch)
treede220490ca7ef692c39d084560e13d675aff3e56 /bash_completion.d
parent5a178151859dbcb2dd01b5e5b8dbb4e6a0b28df1 (diff)
downloadpbuilder-cd06be663f258ba7a6e7cf1e0b6af38e0a57f8eb.tar
pbuilder-cd06be663f258ba7a6e7cf1e0b6af38e0a57f8eb.tar.gz
Minor syntax updates to pbuilder bash-completion to make it function properly under its new location.
- drop "have" check and add "&&" before complete. Git-Dch: Full
Diffstat (limited to 'bash_completion.d')
-rw-r--r--bash_completion.d/pbuilder4
1 files changed, 1 insertions, 3 deletions
diff --git a/bash_completion.d/pbuilder b/bash_completion.d/pbuilder
index 454d470..8a94500 100644
--- a/bash_completion.d/pbuilder
+++ b/bash_completion.d/pbuilder
@@ -7,7 +7,6 @@
# adapted to pbuilder, the license is GPLv2 or later.
# Copyright 2007 Junichi Uekawa <dancer@debian.org>
-have pbuilder && {
_pbuilder()
{
local cur prev command i
@@ -75,6 +74,5 @@ _pbuilder()
esac
return 0
-}
+} &&
complete -F _pbuilder pbuilder
-}