First commit.
This commit is contained in:
13
lisp/lib/env.el
Normal file
13
lisp/lib/env.el
Normal file
@@ -0,0 +1,13 @@
|
||||
;;; 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
|
Reference in New Issue
Block a user