From 2b5d2a90736a079152cf204eb4966dc92dd7bd84 Mon Sep 17 00:00:00 2001 From: Hans Raaf Date: Mon, 11 Jan 2016 01:44:30 +0100 Subject: [PATCH] Fix for the Bash completion on OSX. --- nimble.bash-completion | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nimble.bash-completion b/nimble.bash-completion index 6cb6228..87f244b 100644 --- a/nimble.bash-completion +++ b/nimble.bash-completion @@ -5,7 +5,10 @@ _nimble() local cur=${COMP_WORDS[COMP_CWORD]} local prev=${COMP_WORDS[COMP_CWORD-1]} COMPREPLY=() - _init_completion || return + + if declare -F _init_completions >/dev/null 2>&1; then + _init_completion || return + fi case "$prev" in init|update|refresh|publish|search|build)