Skip to content

Commit

Permalink
fix: install bash-prexec with brew on cli bling (#2047)
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge O. Castro <[email protected]>
  • Loading branch information
GarciaLnk and castrojo authored Dec 23, 2024
1 parent 2869884 commit 0fe7aba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions build_files/base/05-override-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ install -c -m 0755 /tmp/starship /usr/bin
# shellcheck disable=SC2016
echo 'eval "$(starship init bash)"' >> /etc/bashrc

# Bash Prexec
curl --retry 3 -Lo /usr/share/bash-prexec https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh

# Topgrade Install
pip install --prefix=/usr topgrade

Expand Down
4 changes: 3 additions & 1 deletion system_files/shared/usr/share/ublue-os/bluefin-cli/bling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ if [ "$(command -v ug)" ]; then
alias xzfgrep='ug -zF'
fi

HOMEBREW_PREFIX="${HOMEBREW_PREFIX:-/home/linuxbrew/.linuxbrew}"

if [ "$(basename "$SHELL")" = "bash" ]; then
#shellcheck disable=SC1091
. /usr/share/bash-prexec
[ -f "${HOMEBREW_PREFIX}"/etc/profile.d/bash-preexec.sh ] && . "${HOMEBREW_PREFIX}"/etc/profile.d/bash-preexec.sh
[ "$(command -v atuin)" ] && eval "$(atuin init bash)"
[ "$(command -v zoxide)" ] && eval "$(zoxide init bash)"
elif [ "$(basename "$SHELL")" = "zsh" ]; then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
brew "atuin"
brew "bash-preexec"
brew "bat"
brew "direnv"
brew "dysk"
Expand Down

0 comments on commit 0fe7aba

Please sign in to comment.