Alias for bashrc added
This commit is contained in:
parent
14b7be590a
commit
d65799e4a8
1 changed files with 5 additions and 1 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue