From b25ece6f69aa1f408c3335b0c3daf4c623f85236 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Sat, 13 Nov 2021 15:06:43 +0100 Subject: [PATCH] . --- .bashrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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"