Created
December 18, 2013 21:56
-
-
Save ferventcoder/8030532 to your computer and use it in GitHub Desktop.
gitex.mono
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get path of current script - http://stackoverflow.com/a/246128/18475 | |
SCRIPTSOURCE="${BASH_SOURCE[0]}" | |
while [ -h "$SCRIPTSOURCE" ]; do # resolve $SCRIPTSOURCE until the file is no longer a symlink | |
DIR="$(cd -P "$( dirname "$SCRIPTSOURCE" )" && pwd)" | |
SCRIPTSOURCE="$(readlink "$SCRIPTSOURCE")" | |
[[ $SCRIPTSOURCE != /* ]] && SCRIPTSOURCE="$DIR/$SCRIPTSOURCE" # if $SCRIPTSOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located | |
done | |
SCRIPTDIR="$(cd -P "$( dirname "$SCRIPTSOURCE" )" && pwd)" | |
mono "$SCRIPTDIR/GitExtensions.exe" "$@" & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ln -s /Applications/GitExtensions/gitex /usr/bin/gitex