Instead of symlinking mcdev as ~/mcdev, the script should check if ~/bin/ exists and is in the user's $PATH and drop it in there instead.
Example bash code to test if ~/bin is in $PATH:
if [[ -d "${HOME}/bin" ]] && [[ ":$PATH:" == *":${HOME}/bin:"* ]]; then
# Symlink as "${HOME}/bin/mcdev"
else
# Symlink as "${HOME}/mcdev"
fi
Instead of symlinking
mcdevas~/mcdev, the script should check if~/bin/exists and is in the user's$PATHand drop it in there instead.Example
bashcode to test if~/binis in$PATH: