Skip to content
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
7 changes: 6 additions & 1 deletion packages/ublue-bling/src/bling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,21 @@ HOMEBREW_PREFIX="${HOMEBREW_PREFIX:-/home/linuxbrew/.linuxbrew}"
ATUIN_INIT_FLAGS=${ATUIN_INIT_FLAGS:-""}

if [ "$(basename $(readlink /proc/$$/exe))" = "bash" ]; then
# Initialize direnv before bash-preexec to avoid PROMPT_COMMAND conflicts
# See: https://github.com/rcaloras/bash-preexec/pull/143
[ "$(command -v direnv)" ] && eval "$(direnv hook bash)"
[ -f "/etc/profile.d/bash-preexec.sh" ] && . "/etc/profile.d/bash-preexec.sh"
[ -f "/usr/share/bash-prexec" ] && . "/usr/share/bash-prexec"
[ -f "/usr/share/bash-prexec.sh" ] && . "/usr/share/bash-prexec.sh"
[ -f "${HOMEBREW_PREFIX}/etc/profile.d/bash-preexec.sh" ] && . "${HOMEBREW_PREFIX}/etc/profile.d/bash-preexec.sh"
# Initialize atuin before starship to ensure proper command history capture
# See: https://github.com/atuinsh/atuin/issues/2804
# See: https://github.com/atuinsh/atuin/issues/2804
[ "$(command -v atuin)" ] && eval "$(atuin init bash ${ATUIN_INIT_FLAGS})"
[ "$(command -v starship)" ] && eval "$(starship init bash)"
[ "$(command -v zoxide)" ] && eval "$(zoxide init bash)"
elif [ "$(basename $(readlink /proc/$$/exe))" = "zsh" ]; then
# Initialize direnv before atuin to avoid PROMPT_COMMAND conflicts
[ "$(command -v direnv)" ] && eval "$(direnv hook zsh)"
# Initialize atuin before starship to ensure proper command history capture
[ "$(command -v atuin)" ] && eval "$(atuin init zsh ${ATUIN_INIT_FLAGS})"
[ "$(command -v starship)" ] && eval "$(starship init zsh)"
Expand Down
2 changes: 1 addition & 1 deletion packages/ublue-bling/ublue-bling.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global debug_package %{nil}

Name: ublue-bling
Version: 0.1.12
Version: 0.1.13
Release: 1%{?dist}
Summary: Universal Blue Bling CLI setup scripts

Expand Down