Created
February 19, 2018 12:29
-
-
Save cjvirtucio87/f2604874f28fff8479eb9d41fca21af6 to your computer and use it in GitHub Desktop.
This file contains 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
function mygo { | |
MINGW_GIT="$WINDOWS_GIT/mingw64/bin"; | |
PATH=$MINGW_GIT:$PATH; | |
printf "Running go with the Windows installation of Git.\n"; | |
$GOBIN/go $@; | |
PATH=`echo $PATH | sed "s,$MINGW_GIT\:,,g"`; | |
printf "Resetting \$PATH."; | |
} | |
alias go=mygo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment