summaryrefslogtreecommitdiff
path: root/completions/msynctool
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-04-05 00:35:51 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-04-05 00:37:55 +0300
commit9af6f3504e8c94e5ead187b7cd223bd481548957 (patch)
tree3105b2b76bfbf6ba4c5fdc8c61db78db2b4eeeec /completions/msynctool
parenta7c3da6322382c272340fea43962acf19af3d839 (diff)
downloadbash-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/msynctool')
-rw-r--r--completions/msynctool3
1 files changed, 2 insertions, 1 deletions
diff --git a/completions/msynctool b/completions/msynctool
index 3f9afb7f..21b4dd8a 100644
--- a/completions/msynctool
+++ b/completions/msynctool
@@ -1,6 +1,7 @@
# bash completion for msynctool
-have msynctool &&
+have msynctool || return
+
_msynctool()
{
local cur prev anteprev