Skip to content

Instantly share code, notes, and snippets.

@jasonsparc
Created August 16, 2020 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonsparc/6cdb4d6279a6f20d7437365cb466a64b to your computer and use it in GitHub Desktop.
Save jasonsparc/6cdb4d6279a6f20d7437365cb466a64b to your computer and use it in GitHub Desktop.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
if (%0%) {
Args := ""
Loop %0% {
Arg := %A_Index%
if (InStr(Arg, A_Space)) {
Args = %Args% "%Arg%"
} else
Args = %Args% %Arg%
}
Run %A_ScriptDir%\GitExtensions.exe %Args%
} else {
Run %A_ScriptDir%\GitExtensions.exe
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment