From db237a09ea86270b5d982a87af17770acd81a504 Mon Sep 17 00:00:00 2001 From: Tulip Blossom Date: Thu, 26 Dec 2024 23:54:27 -0300 Subject: [PATCH] fix: return on bling.sh if it already got sourced (#55) --- system_files/shared/usr/share/ublue-os/aurora-cli/bling.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system_files/shared/usr/share/ublue-os/aurora-cli/bling.sh b/system_files/shared/usr/share/ublue-os/aurora-cli/bling.sh index 1fe7719d..86c3b828 100644 --- a/system_files/shared/usr/share/ublue-os/aurora-cli/bling.sh +++ b/system_files/shared/usr/share/ublue-os/aurora-cli/bling.sh @@ -1,5 +1,9 @@ #!/usr/bin/env sh +# Check if bling has already been sourced so that we dont break atuin. https://github.com/atuinsh/atuin/issues/380#issuecomment-1594014644 +[ "${BLING_SOURCED:-0}" -eq 1 ] && return +BLING_SOURCED=1 + # ls aliases if [ "$(command -v eza)" ]; then alias ll='eza -l --icons=auto --group-directories-first'