Skip to content

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

Open

Description

@docwhat

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

Activity

  1. sishida commented on Feb 25, 2019

    @sishida
    Collaborator

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions