Environment Variables
Idris 2 recognises a number of environment variables, to decide where to look for packages, external libraries, code generators, etc. It currently recognises, in approximately the order you’re likely to need them:
EDITOR- Sets the editor used in REPL :e commandIDRIS2_CG- Sets which code generator to use when compiling programsIDRIS2_PACKAGE_PATH- Lists the directories where Idris2 looks for packages, in addition to the defaults (which are under theIDRIS2_PREFIXand in thedependssubdirectory of the current working directory). Directories are separated by a:, or a;on WindowsIDRIS2_PATH- Places Idris2 looks for import files, in addition to the imports in packagesIDRIS2_DATA- Places Idris2 looks for its data files. These are typically support code for code generators.IDRIS2_LIBS- Places Idris2 looks for libraries used by code generators.IDRIS2_PREFIX- Gives the Idris2 installation prefixCHEZ- Sets the location of thechezexecutable used in Chez codegenRACKET- Sets the location of theracketexecutable used in Racket codegenRACKET_RACO- Sets the location of theracoexecutable used in Racket codegenGAMBIT_GSI- Sets the location of thegsiexecutable used in Gambit codegenGAMBIT_GSC- Sets the location of thegscexecutable used in Gambit codegenGAMBIT_GSC_BACKEND- Sets thegscexecutable backend argumentIDRIS2_CC- Sets the location of the C compiler executable used in RefC codegenCC- Sets the location of the C compiler executable used in RefC codegenNODE- Sets the location of thenodeexecutable used in Node codegenPATH- used to search for executables in certain codegens