bash: conditionally source bash completions
Anirudh Oppiliappan x@icyphox.sh
Mon, 07 Mar 2022 11:12:50 +0530
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
bash/.bashrc
→
bash/.bashrc
@@ -54,4 +54,5 @@ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion -. /usr/local/share/bash-completion/bash_completion +[[ -f /usr/local/share/bash-completion/bash_completion ]] && + . /usr/local/share/bash-completion/bash_completion