microclimate-dev2ops/microclimate-dev2ops.github.io

Put mcdev in ~/bin if it exists and is in path.

docwhat opened this issue · 1 comments

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

Thank you for opening this issue and letting us know about this enhancement! I have notified the appropriate team to work on updates. Thank you!