From 4fc0c472349e86133ae8ca17b998515c2a5d7335 Mon Sep 17 00:00:00 2001 From: Adam Veldhousen Date: Tue, 30 Nov 2021 18:15:22 -0600 Subject: [PATCH] chore: some tweaks from work lappy --- plugins/kubectl/kubectl.sh | 6 ++++-- plugins/starship/defaults.d/starship.toml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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"