Skip to content

Instantly share code, notes, and snippets.

@takaokouji
Last active October 26, 2017 13:04
Show Gist options
  • Save takaokouji/9537f22c930e9af504c6924bebe948ae to your computer and use it in GitHub Desktop.
Save takaokouji/9537f22c930e9af504c6924bebe948ae to your computer and use it in GitHub Desktop.
cmd.exe with ruby for RubyInstaller 2.4.2-2
@setlocal
call %~dp0ruby_2.4.2-2-x86\bin\ridk.cmd enable
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
@cd /d %~dp0
@start %COMSPEC%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment