fboender/multi-git-status

[Question]/suggestion: Auto add to your path? or dot file?

Closed this issue · 2 comments

Just reading through the docs maybe the installation steps could assist noobs (like myself).

Is there a recommended way to install mgitstatus globally?

I was able to do this with just an alias in my ~.bash_profile.
alias mgitstatus='~/<path to parent folder>/multi-git-status/mgitstatus'

But wondering if there was a better way or creating an install script?

p.s. Love the script btw. I did this using a bash command but this way more descriptive and feature-rich 😄

I put it in $HOME/.local/bin/ and Ubuntu default .profile has the following to add it to $PATH automatically.

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ]; then
    PATH="$HOME/.local/bin:$PATH"
fi

I've created an installer script that can install globally or locally. Check the README for instructions.

Thanks for the feedback!