From 4a094f669e3b3480170abc6c55b9d9a9be2df2ad Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 5 Jun 2019 14:27:08 -0400 Subject: [PATCH] Do not break for zsh users The completion functionality shall be skipped unless the shell is bash specifically. --- confluent_client/confluent_env.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_client/confluent_env.sh b/confluent_client/confluent_env.sh index 13e8ee19..00955c85 100644 --- a/confluent_client/confluent_env.sh +++ b/confluent_client/confluent_env.sh @@ -39,6 +39,8 @@ alias nodesetboot='CURRENT_CMDLINE=$(HISTTIMEFORMAT= builtin history 1); export alias nodestorage='CURRENT_CMDLINE=$(HISTTIMEFORMAT= builtin history 1); export CURRENT_CMDLINE; nodestorage' alias nodeshell='CURRENT_CMDLINE=$(HISTTIMEFORMAT= builtin history 1); export CURRENT_CMDLINE; nodeshell' alias nodelicense='CURRENT_CMDLINE=$(HISTTIMEFORMAT= builtin history 1); export CURRENT_CMDLINE; nodelicense' +# Do not continue for non-bash shells, the rest of this sets up bash completion functions +[ -z "$BASH_VERSION" -o -z "$PS1" ] && return _confluent_get_args()