From 0eec37352abefd90185d6e36fca1b622be738405 Mon Sep 17 00:00:00 2001 From: Fr4nz D13trich Date: Wed, 24 Dec 2025 14:41:06 +0100 Subject: [PATCH] add alias fixed --- helium_helper.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/helium_helper.sh b/helium_helper.sh index beee6d5..a48ec40 100755 --- a/helium_helper.sh +++ b/helium_helper.sh @@ -168,8 +168,13 @@ add_launcher() { ### ALIAS add_alias() { ### WORKS BUT NEEDS WORK --> CHECK SCRIPT PRESENCE FIRST - update_script - + if ! [ -f "$SCRIPT_PATH/$SCRIPT_FILE_NAME" ] ; then + mkdir -p $SCRIPT_PATH + wget -P $TMP $SCRIPT_URL -q + chmod +x $TMP/$SCRIPT_FILE_NAME + mv $TMP/$SCRIPT_FILE_NAME $SCRIPT_PATH + fi + if [ -f "$HOME/.zshrc" ] ; then echo "alias $ALIAS=\"$SCRIPT_PATH/$SCRIPT_FILE_NAME\"" >> $HOME/.zshrc echo -e "\n ${LCY}$ALIAS ${GRN}added to${CRS} $HOME/.zshrc"