Skip to content

Commit

Permalink
bashrc: workaround linuxbrew path
Browse files Browse the repository at this point in the history
  • Loading branch information
icehess committed Jun 10, 2024
1 parent 62c2847 commit c7fff72
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .dotfiles-site/linuxbrew.sh
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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

Expand Down

0 comments on commit c7fff72

Please sign in to comment.