Files
dotemacs/lisp/lib/env.el
2022-01-09 21:19:46 +01:00

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