diff --git a/.dotfiles-site/linuxbrew.sh b/.dotfiles-site/linuxbrew.sh index 15b56ca..bb61e5c 100644 --- a/.dotfiles-site/linuxbrew.sh +++ b/.dotfiles-site/linuxbrew.sh @@ -1,4 +1,3 @@ -echo brewbwbwb if [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin${PATH+:$PATH}"; export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"; @@ -11,12 +10,13 @@ if [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then export MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:"; export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}"; - if [ -d /home/linuxbrew/.linuxbrew/etc/bash_completion.d ]; then - # if [ -n "$BASH_COMPLETION_USER_DIR" ]; then - # export BASH_COMPLETION_USER_DIR="/home/linuxbrew/.linuxbrew/etc/bash_completion.d:$BASH_COMPLETION_USER_DIR" - # else - # export BASH_COMPLETION_USER_DIR="/home/linuxbrew/.linuxbrew/etc/bash_completion.d" - # fi + if [ -d /home/linuxbrew/bash-completion ]; then + if [ -n "$BASH_COMPLETION_USER_DIR" ]; then + export BASH_COMPLETION_USER_DIR="/home/linuxbrew/bash-completion:$BASH_COMPLETION_USER_DIR" + else + export BASH_COMPLETION_USER_DIR="/home/linuxbrew/bash-completion" + fi + elif [ -d /home/linuxbrew/.linuxbrew/etc/bash_completion.d ]; then . /home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew fi