(! 540)-> export MY_VAR=foo

Mon Jul 07 12:26:01
(sean)-(jobs:0)-(~/clojure)
(! 541)-> lein repl
nREPL server started on port 56747 on host 127.0.0.1 - nrepl://127.0.0.1:56747
REPL-y 0.3.1
Clojure 1.6.0
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=> (System/getenv "MY_VAR")
"foo"

How are you starting your REPL processes? Maybe you're starting them from an 
environment that does not pick up the same environment?

Sean

On Jul 7, 2014, at 11:57 AM, Jarrod Swart <jcsw...@gmail.com> wrote:

> Yep I ran
> 
> export MY_VAR=foo
> 
> and all subsequent "calls" to get or print the env var on the CLI work fine.
> 
> I set the var and restarted all repl processes.
> 
> I'll try setting it in .bashrc as well.


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to