1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-04 23:58:01 +00:00

Add Get The Value Of An Environment Variable as a clojure til.

This commit is contained in:
jbranchaud
2015-11-19 20:35:57 -06:00
parent 122d6ce276
commit 2f9374ad3f
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# 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:
```clojure
> (System/getenv "HOME")
"/Users/jbranchaud"
```
It returns `nil` when the environment variable doesn't exist.
```clojure
> (System/getenv "HOUSE")
nil
```