Skip to content

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

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

No activity

Activity on this issue will appear here.

Activity

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