From e75222470012c898e4e00e285eac1ec53a48a57a Mon Sep 17 00:00:00 2001 From: Pinak Dhabu Date: Sun, 24 May 2026 18:13:50 +0530 Subject: [PATCH] fix: detect AUR helper in install_bashrc_support instead of hardcoded sudo paru --- .bashrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 5f7d119..c23d8fe 100644 --- a/.bashrc +++ b/.bashrc @@ -470,7 +470,13 @@ install_bashrc_support() { sudo apt-get install /tmp/fastfetch_latest_amd64.deb ;; "arch") - sudo paru multitail tree zoxide trash-cli fzf bash-completion fastfetch + if command -v paru >/dev/null 2>&1; then + paru -S --needed --noconfirm multitail tree zoxide trash-cli fzf bash-completion fastfetch + elif command -v yay >/dev/null 2>&1; then + yay -S --needed --noconfirm multitail tree zoxide trash-cli fzf bash-completion fastfetch + else + echo "Error: No AUR helper (paru/yay) found. Install one first." >&2 + fi ;; "slackware") echo "No install support for Slackware"