Skip to content

Instantly share code, notes, and snippets.

@FabricioFFC
Created March 5, 2011 23: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 FabricioFFC/856842 to your computer and use it in GitHub Desktop.
Save FabricioFFC/856842 to your computer and use it in GitHub Desktop.
gem.bat - Windows
@ECHO OFF
SET _HOMEDRIVE=%HOMEDRIVE%
SET _HOMEPATH=%HOMEPATH%
SET HOMEDRIVE=C:
SET HOMEPATH=\Ruby187
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"ruby.exe" "C:\Ruby187\bin\gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
@"ruby.exe" "%~dpn0" %*
SET HOMEDRIVE=%_HOMEDRIVE%
SET HOMEPATH=%_HOMEPATH%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment