Skip to content

Instantly share code, notes, and snippets.

@cjvirtucio87
Created February 19, 2018 12:29
Show Gist options
  • Save cjvirtucio87/f2604874f28fff8479eb9d41fca21af6 to your computer and use it in GitHub Desktop.
Save cjvirtucio87/f2604874f28fff8479eb9d41fca21af6 to your computer and use it in GitHub Desktop.
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