# How can different versions of julia in juliaup share a same \`startup.jl\` file?

**URL:** <https://discourse.julialang.org/t/how-can-different-versions-of-julia-in-juliaup-share-a-same-startup-jl-file/124948>\
**Category:** General Usage\
**Tags:** startup, juliaup\
**Created:** [January 20, 2025, 6:09am UTC](https://discourse.julialang.org/t/how-can-different-versions-of-julia-in-juliaup-share-a-same-startup-jl-file/124948 "2025-01-20T06:09:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [January 20, 2025, 6:09am UTC](https://discourse.julialang.org/t/how-can-different-versions-of-julia-in-juliaup-share-a-same-startup-jl-file/124948/1 "2025-01-20T06:09:09Z")

</div>

How can different versions of julia in juliaup share a same `startup.jl` file?

For example, I have installed julia v1.11.2 and v1.10.7 in juliaup and they both appears in the `JULIAUP_DEPOT_PATH`, but the `startup.jl` files are located in their own directories. I want them share a same `startup.jl` file, what should I do?

---

<div class="post-metadata">

**Author:** ![StevenSiew](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevensiew/32/218393_2.png) [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Post date:** [January 20, 2025, 7:01am UTC](https://discourse.julialang.org/t/how-can-different-versions-of-julia-in-juliaup-share-a-same-startup-jl-file/124948/2 "2025-01-20T07:01:34Z")

</div>

In unix, linux and MacOS

You can use symbolic link to point to a single startup.jl file.

---

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [January 20, 2025, 7:04am UTC](https://discourse.julialang.org/t/how-can-different-versions-of-julia-in-juliaup-share-a-same-startup-jl-file/124948/3 "2025-01-20T07:04:06Z")

</div>

What about windows?

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [January 20, 2025, 7:27am UTC](https://discourse.julialang.org/t/how-can-different-versions-of-julia-in-juliaup-share-a-same-startup-jl-file/124948/4 "2025-01-20T07:27:06Z")

</div>

You should really only ever modify/use `~/.julia/config/startup.jl`, and that will be used by all Julia versions that use this depot.

The `startup.jl` files that are inside the `~/.julia/juliaup` folders shouldn’t be edited by users (I kind of wish they didn’t even exist in the distributions of Julia).

---

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [January 20, 2025, 8:30am UTC](https://discourse.julialang.org/t/how-can-different-versions-of-julia-in-juliaup-share-a-same-startup-jl-file/124948/5 "2025-01-20T08:30:05Z")

</div>

Thanks for your reply, @davidanthoff ! 🤝

BTW, may I ask you the necessary configuration for the installation of portable juliaup and julia? After unziping the juliaup package to a place, for example, a USB drive `F:\`, I need to add `F:\juliaup` to the `Path` environment variable and at the same time to create a new environment variable named `JULIAUP_DEPOT_PATH` and set its value to point to someplace in `F:\`. Am I right? Is this all I need to do? How should I change the default path of the folder `~\.julia` to the USB drive? Do I have to repeat these configurations every time I insert the USB drive into a new computer? I wonder whether there is any method that we can configure these within the portable juliaup and julia?

Waiting for your attention and thank you in advance!
