diff --git a/scripts/install.sh b/scripts/install.sh index 05ca196..e14962e 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -26,6 +26,7 @@ install_link() { SOURCE_STR="\nexport PATH=\"\$HOME/.fe/bin:\$PATH\"\n" local SHELLTYPE SHELLTYPE="$(basename "/$SHELL")" + ln -sf $HOME/.fe/bin/fe.js /usr/local/bin/fe if [ -z "${PROFILE-}" ] ; then printf "$red> Profile not found. Tried ${PROFILE} (as defined in \$PROFILE), ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile.\n" @@ -50,7 +51,6 @@ install_link() { $HOME/.fe/bin/fe -v # ignore: `source ~/.zshrc` cause error "autoload command not found" source "$PROFILE" 2> /dev/null - command ln -sf $HOME/.fe/bin/fe.js /usr/local/bin/fe command "$SHELLTYPE" fi }