Skip to content

Commit

Permalink
fix: make tab completion work for brew
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles authored Feb 2, 2024
1 parent 73e65a7 commit 5a67602
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ if test "$(id -u)" -gt "0"; then
green=$'\033[32m'
bold=$'\033[1m'
normal=$'\033[0m'
HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew
export HOMEBREW_REPOSITORY
if test ! -f /etc/linuxbrew.firstrun; then
printf "\nBluefin-CLI First Run Setup\n\n"
printf "Setting up sudo for ${bold}${USER}${normal}...\t\t\t "
Expand Down
14 changes: 12 additions & 2 deletions toolboxes/bluefin-cli/files/etc/profile.d/bash_completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,23 @@ if [ "x${BASH_VERSION-}" != x -a "x${PS1-}" != x -a "x${BASH_COMPLETION_VERSINFO
[ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] &&
. "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion"
if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; then
# Source completion code.
# Source completion code
. /usr/share/bash-completion/bash_completion
fi
if shopt -q progcomp && [ -r /usr/local/share/bash-completion/bash_completion ]; then
# Source completion code.
. /usr/local/share/bash-completion/bash_completion
fi
if test -L /home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew; then
/home/linuxbrew/.linuxbrew/bin/brew completions link.
fi
if test -d /home/linuxbrew/.linuxbrew/etc/bash_completion.d; then
for rc in /home/linuxbrew/.linuxbrew/etc/bash_completion.d/*; do
if test -r "$rc"; then
. "$rc"
fi
done
unset rc
fi
fi

fi

0 comments on commit 5a67602

Please sign in to comment.