all repos — dotfiles @ 5f5761bb63ecf770eb02f00e6466f78a0a568436

my *nix dotfiles

bash: conditionally source bash completions
Anirudh Oppiliappan x@icyphox.sh
Mon, 07 Mar 2022 11:12:50 +0530
commit

5f5761bb63ecf770eb02f00e6466f78a0a568436

parent

a52c56ff35e57ae369a018ac15fe161f39fe775c

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M bash/.bashrcbash/.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