Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fish homebrew completions weren't sourced #51

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading