diff --git a/.bashrc b/.bashrc index b3b1213..d9458c4 100644 --- a/.bashrc +++ b/.bashrc @@ -1,3 +1,4 @@ +#!/bin/bash export LIBVIRT_DEFAULT_URI="qemu:///system" export HISTSIZE=-1 export HISTFILESIZE=-1 @@ -20,8 +21,11 @@ if [[ ! "$SSH_AUTH_SOCK" ]]; then eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")" fi -[[ -x "$(command -v kubectl)" ]] && source <(kubectl completion bash) -[[ -x "$(command -v helm)" ]] && source <(helm completion bash) +if [[ -d "$HOME"/.bash_completions.d ]];then + for file in "$HOME"/.bash_completions.d/*.sh;do + source "$file" + done +fi # PS1 Prompt [[ -f "$HOME/.functions/ps1.sh" ]] && source "$HOME/.functions/ps1.sh"