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};
|
||||
fi
|
||||
|
||||
if [[ -f "$(which kubectl 2>&1)" ]]; then
|
||||
[[ -f "/etc/bash_completion.d/kubectl" ]] || kubectl completion bash > /etc/bash_completion.d/kubectl;
|
||||
if [[ -f "$(which kubectl 2>&1)" ]] && [[ -d "${BASH_COMPLETION_DIR}" ]]; then
|
||||
source $(kubectl completion bash);
|
||||
fi
|
||||
|
||||
# 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}";
|
||||
|
||||
if [[ -f "$(which ssh-agent 2>&1)" ]]; then
|
||||
eval $(ssh-agent) 2>&1 > /dev/null;
|
||||
fi
|
||||
|
||||
|
||||
# Open an ssh tunnel
|
||||
ssh_tunnel(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue