diff --git a/helium_helper.sh b/helium_helper.sh index 948dead..d3d3eb0 100755 --- a/helium_helper.sh +++ b/helium_helper.sh @@ -219,7 +219,7 @@ add_alias() { echo -e "\n ${LCY}$ALIAS ${GRN}added to${CRS} $HOME/.bashrc\n" elif [ "$ACTIVE_SHELL" == "fish" ] ; then - if [ "$(cat $HOME/.config/fish/fish.config | grep "source $ALIAS")" ] ; then + if [ "$(cat $HOME/.config/fish/fish.config | grep "source $HOME/.config/fish/$ALIAS.config")" ] ; then echo -e "\n ${LCY}$ALIAS ${GRN}already present in${CRS} $HOME/.config/fish/fish.config\n" exit fi