diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-04-05 00:35:51 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-04-05 00:37:55 +0300 |
commit | 9af6f3504e8c94e5ead187b7cd223bd481548957 (patch) | |
tree | 3105b2b76bfbf6ba4c5fdc8c61db78db2b4eeeec /completions/apt-build | |
parent | a7c3da6322382c272340fea43962acf19af3d839 (diff) | |
download | bash-completion-9af6f3504e8c94e5ead187b7cd223bd481548957.tar.gz |
Abort completion file loading earlier if required commands are not available.
Cuts ~10% from bash completion load time on two different systems I
just tested.
Diffstat (limited to 'completions/apt-build')
-rw-r--r-- | completions/apt-build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/completions/apt-build b/completions/apt-build index d875a986..0f611e5c 100644 --- a/completions/apt-build +++ b/completions/apt-build @@ -1,6 +1,7 @@ # Debian apt-build(1) completion. -have apt-build && +have apt-build || return + _apt_build() { local cur prev special i |