Skip to content

Commit

Permalink
fix: fish homebrew completions weren't sourced
Browse files Browse the repository at this point in the history
fix: Brew Cellar stored by hostname
  • Loading branch information
m2Giles committed Feb 7, 2024
1 parent 41ed74a commit e47e80a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion quadlets/bluefin-cli/bluefin-dx-cli.container
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Environment=USERNAME=%u
Environment=container=podman
Exec=--verbose --name %u --user %U --group %G --home %h --init "0" --nvidia "1" --pre-init-hooks " " --additional-packages " " -- " "
Image=ghcr.io/ublue-os/bluefin-dx-cli:latest
HostName=bluefin.%l
HostName=bluefin-dx.%l
Network=host
PodmanArgs=--entrypoint /usr/bin/entrypoint
PodmanArgs=--ipc host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ if test "$(id -u)" -gt "0"; then
blue=$(printf '\033[38;5;32m')
bold=$(printf '\033[1m')
normal=$(printf '\033[0m')
HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew
export HOMEBREW_REPOSITORY
HOMEBREW_NO_AUTO_UPDATE=0
export HOMEBREW_NO_AUTO_UPDATE
if test ! -f /etc/linuxbrew.firstrun; then
printf "\nBluefin-CLI First Run Setup\n\n"
printf "Setting up sudo for %s%s%s%s...\t\t\t " "$bold" "$blue" "$USER" "$normal"
Expand Down
10 changes: 10 additions & 0 deletions toolboxes/bluefin-cli/files/etc/profile.d/homebrew-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# shellcheck shell=sh

PATH="$PATH:/home/linuxbrew/.linuxbrew/sbin"
export PATH
HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew"
export HOMEBREW_REPOSITORY
HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
export HOMEBREW_PREFIX
HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar"
export HOMEBREW_CELLAR
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,13 @@ if test "$(id -u)" -gt "0"
set -gx HOMEBREW_PREFIX /home/linuxbrew/.linuxbrew
set -gx HOMEBREW_CELLAR /home/linuxbrew/.linuxbrew/Cellar
set -gx HOMEBREW_REPOSITORY /home/linuxbrew/.linuxbrew
if ! test -L (brew --prefix)"/share/fish/completions"
brew completions link
end
if test -d (brew --prefix)"/share/fish/completions"
set -p fish_complete_path (brew --prefix)/share/fish/completions
end
if test -d (brew --prefix)"/share/fish/vendor_completions.d"
set -p fish_complete_path (brew --prefix)/share/fish/vendor_completions.d
end
end

0 comments on commit e47e80a

Please sign in to comment.