From c81d8b5c96cc5893622c030c9feaaaa806569a2e Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Thu, 29 Jun 2017 22:40:06 +0200 Subject: [PATCH] completion: watch out for bash 3 --- bash/completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/completion b/bash/completion index 1c9fcfe..147bbc7 100644 --- a/bash/completion +++ b/bash/completion @@ -2,7 +2,7 @@ #/etc/bash_completion #/usr/local/share/bash-completion/bash_completion bash_completion_file="/opt/arch/share/bash-completion/bash_completion" -if [[ -f "$bash_completion_file" ]]; then +if [[ $BASH_VERSION != 3.* && -f "$bash_completion_file" ]]; then source "$bash_completion_file" fi