all repos — min @ b9f5bce402461fc7df0e733f03048f4129a09d2f

A small but practical concatenative programming language.

core/env.nim

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
import os

var HOME*: string
if defined(windows):
  HOME = getenv("USERPROFILE")
if not defined(windows):
  HOME = getenv("HOME")

let MINRC* = HOME / ".minrc"
let MINSYMBOLS* = HOME / ".min_symbols"
let MINHISTORY* = HOME / ".min_history"
let MINLIBS* = HOME / ".minlibs"