Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 365 Bytes

get-the-value-of-an-environment-variable.md

File metadata and controls

16 lines (12 loc) · 365 Bytes

Get The Value Of An Environment Variable

You can get the value of an environment variable on your system using the System/getenv function. Just pass it the environment variable as a string:

> (System/getenv "HOME")
"/Users/jbranchaud"

It returns nil when the environment variable doesn't exist.

> (System/getenv "HOUSE")
nil