elvish/pkg/env/env.go
Qi Xiao 2d09e1a500 Implement XDG directory support.
Tests will be added in a followup commit before this branch is merged.

This addresses #383.
2021-07-10 02:20:59 +01:00

27 lines
631 B
Go

// Package env keeps names of environment variables with special significance to
// Elvish.
package env
// Environment variables with special significance to Elvish.
const (
HOME = "HOME"
LS_COLORS = "LS_COLORS"
PATH = "PATH"
PWD = "PWD"
SHLVL = "SHLVL"
USERNAME = "USERNAME"
// Only used on Unix
XDG_CONFIG_HOME = "XDG_CONFIG_HOME"
XDG_DATA_DIRS = "XDG_DATA_DIRS"
XDG_DATA_HOME = "XDG_DATA_HOME"
XDG_RUNTIME_DIR = "XDG_RUNTIME_DIR"
XDG_STATE_HOME = "XDG_STATE_HOME"
// Only used on Windows
PATHEXT = "PATHEXT"
// Only used in tests
ELVISH_TEST_TIME_SCALE = "ELVISH_TEST_TIME_SCALE"
)