14 lines
311 B
EmacsLisp
14 lines
311 B
EmacsLisp
;;; env.el --- support functions for working with environment variables -*- lexical-binding: t; -*-
|
|
;;; Commentary:
|
|
;;; Code:
|
|
|
|
(defun getenv-or (env value)
|
|
"Fetch the value of ENV or, if it is not set, return VALUE."
|
|
(if (getenv env)
|
|
(getenv env)
|
|
value))
|
|
|
|
|
|
(provide 'lib/env)
|
|
;;; env.el ends here
|