fix: checking code
parent
63999efd2d
commit
5594574198
|
|
@ -7,8 +7,8 @@ if ! [[ -f "$(which kubectl 2>&1)" ]] && [[ -d "${HOME}/.asdf" ]]; then
|
||||||
asdf install kubectl ${KUBECTL_VERSION};
|
asdf install kubectl ${KUBECTL_VERSION};
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "$(which kubectl 2>&1)" ]]; then
|
if [[ -f "$(which kubectl 2>&1)" ]] && [[ -d "${BASH_COMPLETION_DIR}" ]]; then
|
||||||
[[ -f "/etc/bash_completion.d/kubectl" ]] || kubectl completion bash > /etc/bash_completion.d/kubectl;
|
source $(kubectl completion bash);
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This command is used a LOT both below and in daily life
|
# This command is used a LOT both below and in daily life
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,10 @@ export SSH_DIR="${HOME}/.ssh";
|
||||||
|
|
||||||
files_linkdir "${FILES_PLUGIN_ROOT}/defaults.d" "${SSH_DIR}";
|
files_linkdir "${FILES_PLUGIN_ROOT}/defaults.d" "${SSH_DIR}";
|
||||||
|
|
||||||
|
if [[ -f "$(which ssh-agent 2>&1)" ]]; then
|
||||||
|
eval $(ssh-agent) 2>&1 > /dev/null;
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Open an ssh tunnel
|
# Open an ssh tunnel
|
||||||
ssh_tunnel(){
|
ssh_tunnel(){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue