From d65799e4a80e82eae6b8d934614bcdb4e4d50062 Mon Sep 17 00:00:00 2001 From: Fr4nz D13trich Date: Wed, 24 Dec 2025 11:24:52 +0100 Subject: [PATCH] Alias for bashrc added --- helium_helper.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/helium_helper.sh b/helium_helper.sh index 1962d1a..96cda3c 100755 --- a/helium_helper.sh +++ b/helium_helper.sh @@ -172,6 +172,10 @@ add_alias() { ### WORKS BUT NEEDS WORK echo "alias $ALIAS=\"$SCRIPT_PATH/$SCRIPT_FILE_NAME\"" >> $HOME/.zshrc echo -e "\n ${LCY}$ALIAS ${GRN}added to${CRS} $HOME/.zshrc" + elif [ -f "$HOME/.bashrc" ] ; then + echo "alias $ALIAS=\"$SCRIPT_PATH/$SCRIPT_FILE_NAME\"" >> $HOME/.zshrc + echo -e "\n ${LCY}$ALIAS ${GRN}added to${CRS} $HOME/.bashrc" + else echo -e "\n ${RED}No .bashrc like file found!${CRS}" @@ -449,7 +453,7 @@ help() { echo -e "Options:\n" echo -e "\t-i\tDownload & install $APP_NAME_LONG from $SOURCE" echo -e "\t-l\tCreate desktop launcher" - echo -e "\t-a\tCreate alias for $SCRIPT_FILE_NAME ${YEL}--> Working with zsh${CRS}" + echo -e "\t-a\tCreate alias for $SCRIPT_FILE_NAME ${YEL}--> Partially working with zsh & bash${CRS}" echo -e "\t-u\tDownload & update $APP_NAME_LONG from $SOURCE" echo -e "\t-U\tEnable automatic updates on login ${RED}--> Not yet working${CRS}" echo -e "\t-r\tRemove $APP_NAME_LONG"