Alias for bashrc added

This commit is contained in:
Fr4nz D13trich 2025-12-24 11:24:52 +01:00
parent 14b7be590a
commit d65799e4a8

View file

@ -172,6 +172,10 @@ add_alias() { ### WORKS BUT NEEDS WORK
echo "alias $ALIAS=\"$SCRIPT_PATH/$SCRIPT_FILE_NAME\"" >> $HOME/.zshrc echo "alias $ALIAS=\"$SCRIPT_PATH/$SCRIPT_FILE_NAME\"" >> $HOME/.zshrc
echo -e "\n ${LCY}$ALIAS ${GRN}added to${CRS} $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 else
echo -e "\n ${RED}No .bashrc like file found!${CRS}" echo -e "\n ${RED}No .bashrc like file found!${CRS}"
@ -449,7 +453,7 @@ help() {
echo -e "Options:\n" echo -e "Options:\n"
echo -e "\t-i\tDownload & install $APP_NAME_LONG from $SOURCE" echo -e "\t-i\tDownload & install $APP_NAME_LONG from $SOURCE"
echo -e "\t-l\tCreate desktop launcher" 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\tDownload & update $APP_NAME_LONG from $SOURCE"
echo -e "\t-U\tEnable automatic updates on login ${RED}--> Not yet working${CRS}" echo -e "\t-U\tEnable automatic updates on login ${RED}--> Not yet working${CRS}"
echo -e "\t-r\tRemove $APP_NAME_LONG" echo -e "\t-r\tRemove $APP_NAME_LONG"