diff --git a/plugins/kubectl/kubectl.sh b/plugins/kubectl/kubectl.sh index 63ba991..69f1410 100644 --- a/plugins/kubectl/kubectl.sh +++ b/plugins/kubectl/kubectl.sh @@ -7,8 +7,10 @@ if ! [[ -f "$(which kubectl 2>&1)" ]] && [[ -d "${HOME}/.asdf" ]]; then asdf install kubectl ${KUBECTL_VERSION}; fi -if [[ -f "$(which kubectl 2>&1)" ]] && [[ -d "${BASH_COMPLETION_DIR}" ]]; then - [[ -f "${BASH_COMPLETION_DIR}/kubectl" ]] || kubectl completion bash > "${BASH_COMPLETION_DIR}/kubectl"; +if [[ -f "$(which kubectl 2>&1)" ]]; then + if [[ -d "/etc/bash_completion.d" ]]; then + [[ -f "/etc/bash_completion.d/kubectl" ]] || kubectl completion bash > /etc/bash_completion.d/kubectl; + fi fi # This command is used a LOT both below and in daily life diff --git a/plugins/starship/defaults.d/starship.toml b/plugins/starship/defaults.d/starship.toml index 41f7fad..ae61fea 100644 --- a/plugins/starship/defaults.d/starship.toml +++ b/plugins/starship/defaults.d/starship.toml @@ -1,6 +1,6 @@ add_newline = true -scan_timeout = 50 +scan_timeout = 500 format = "$all"