# Setting path for Julia config dir?

**URL:** <https://discourse.julialang.org/t/setting-path-for-julia-config-dir/19418>\
**Category:** General Usage\
**Created:** [January 9, 2019, 10:41am UTC](https://discourse.julialang.org/t/setting-path-for-julia-config-dir/19418 "2019-01-09T10:41:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oschulz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oschulz/32/2998_2.png) [@oschulz](https://discourse.julialang.org/u/oschulz)\
**Post date:** [January 9, 2019, 10:41am UTC](https://discourse.julialang.org/t/setting-path-for-julia-config-dir/19418/1 "2019-01-09T10:41:22Z")

</div>

Is there a way to redirect “~/.julia/config” to another directory via an envionment variable? I didn’t see anything in [Environment Variables · The Julia Language](https://docs.julialang.org/en/v1/manual/environment-variables/index.html) for config, but it’s possible to redirect everything else in “~/.julia”, of course.

(It would actually be nice to have an env variable that can redirect the hole of “~/.julia”, in addition to the specific ones for packages, dev, etc.)

---

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [January 9, 2019, 2:39pm UTC](https://discourse.julialang.org/t/setting-path-for-julia-config-dir/19418/2 "2019-01-09T14:39:44Z")

</div>

One thing you could do is creaye a symbolic link to change the directory. For example, I have a symbolic link for `~/.juliarc.jl` to the file `~/.julia/config/startup.jl` in my home directory. Originally, Julia had the config file names like that, and I like to continue using it there, so I simply created the directory symlink to it.

---

<div class="post-metadata">

**Author:** ![oschulz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oschulz/32/2998_2.png) [@oschulz](https://discourse.julialang.org/u/oschulz)\
**Post date:** [January 9, 2019, 3:03pm UTC](https://discourse.julialang.org/t/setting-path-for-julia-config-dir/19418/3 "2019-01-09T15:03:49Z")

</div>

Sure, a symlink is a good workaround in some cases. But that doesn’t help if, e.g., you want to completely separate Julia installations (resp. test instances) and can’t use VMs/containers.
