Skip to content

Instantly share code, notes, and snippets.

@filipw
Created April 11, 2014 09:56
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipw/10454874 to your computer and use it in GitHub Desktop.
Save filipw/10454874 to your computer and use it in GitHub Desktop.
  1. Install SublimeREPL package from package control

  2. Install scriptcs package from package control

  3. Download this experimental build of scriptcs and extract to some folder on your machine

  4. go to ~/.config/sublime-text-2/Packages/SublimeREPL/config/ScriptCS and open Main.sublime-menu file

  5. Update the "linux" path in that file to "linux": ["mono", "PATH/TO/YOUR/scriptcs.exe", "-modules", "mono", "-repl"]

  6. Profit. Open Sublime > Tools > SublimeREPL > ScriptCS to start the REPL

@gregoryyoung
Copy link

It seems files in scriptcs are done twice? in root and in bin..

@filipw
Copy link
Author

filipw commented Apr 11, 2014

in root you have scriptcs.exe binaries (just so that the exe would start), while in bin you have binaries specific for the mono engine, which are loaded at startup and used to swap the default scriptcs Win-centric internals with ones that run on mono.

The setup is not ideal, but it's a work in progress. The goal is to have no bin at all.

@yuxhuang
Copy link

On OS X, the path to Main.sublime-menu is ~/Library/Application Support/Sublime Text 3/Packages/SublimeREPL/config/ScriptCS on Sublime Text 3.

@glennblock
Copy link

@yuxhuang thanks for that!

@glennblock
Copy link

@filipw did you include the mono version of nuget.core in here?

@filipw
Copy link
Author

filipw commented Apr 12, 2014

just updated to it

@BrendanThompson
Copy link

Thinking for OSX i might build a bash script for starting up scriptcs with the mono engine, so you don't have to type out as much :) The bash script is here it's really basic at the moment but then i did just scratch up quickly in the browser for a poc. I will try make that a little more extensive as the day goes on!

@glennblock
Copy link

Nice one @BrendanThompsonra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment