Last active
December 13, 2015 17:28
-
-
Save stuartwakefield/4948017 to your computer and use it in GitHub Desktop.
Just the batch file I use to run clojure nicely on my Windows command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Installation | |
:: ------------ | |
:: | |
:: 1. Add this to your Clojure directory. | |
:: 2. Add that directory to your Windows PATH | |
:: 3. Change the version number in the Batch file if need be. | |
:: | |
:: Then you can run clojure from the Windows command line just by typing: | |
:: | |
:: clojure [args] | |
:: | |
:: To start the REPL: | |
:: | |
:: clojure | |
:: | |
:: To run a clojure script file: | |
:: | |
:: clojure my-file.clj | |
:: | |
@echo off | |
:: The directory containing this batch file | |
set DIRPATH=%~dp0 | |
:: Change the version if you need to | |
set VERSION=1.4.0 | |
:: Java must also be on the PATH | |
call java -jar %DIRPATH%clojure-%VERSION%.jar %* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment