# Juliaup modifications to .zshrc

**URL:** <https://discourse.julialang.org/t/juliaup-modifications-to-zshrc/118844>\
**Category:** General Usage\
**Tags:** installation, juliaup\
**Created:** [August 31, 2024, 2:15pm UTC](https://discourse.julialang.org/t/juliaup-modifications-to-zshrc/118844 "2024-08-31T14:15:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [August 31, 2024, 2:15pm UTC](https://discourse.julialang.org/t/juliaup-modifications-to-zshrc/118844/1 "2024-08-31T14:15:19Z")

</div>

I recently bought a new MacBook. A few weeks ago I installed juliaup. I noticed that MacOS now uses z-shell as the default shell, so today I made the mistake of taking my old `.bash_profile` and doing this:

```sh
mv .bash_profile .zshrc

```

However, it looks like I blew away some path configuration that juliaup made, since I can no longer run `julia` or `juliaup`. Can anyone provide me with the path configuration settings that `juliaup` adds to `.zshrc` on MacOS? (Anyone using a recent version of MacOS and juliaup can probaby just look in their `.zshrc` file.)

---

<div class="post-metadata">

**Author:** ![Marcelo\_Simas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marcelo_simas/32/208618_2.png) [@Marcelo\_Simas](https://discourse.julialang.org/u/Marcelo_Simas)\
**Post date:** [August 31, 2024, 3:59pm UTC](https://discourse.julialang.org/t/juliaup-modifications-to-zshrc/118844/2 "2024-08-31T15:59:51Z")

</div>

I checked my .zshrc file and it makes no mention to julia or juliaup. So I am assuming the juliaup installer just creates a symlink on one of the system bin folders.

---

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [August 31, 2024, 4:10pm UTC](https://discourse.julialang.org/t/juliaup-modifications-to-zshrc/118844/3 "2024-08-31T16:10:11Z")

</div>

Huh, that’s odd. Then I wonder why I can no longer run the `julia` or `juliaup` commands…

---

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [August 31, 2024, 4:34pm UTC](https://discourse.julialang.org/t/juliaup-modifications-to-zshrc/118844/4 "2024-08-31T16:34:42Z")

</div>

Ok, I went into the `.juliaup/bin` directory and ran

```sh
./juliaup self uninstall

```

Then I reinstalled juliaup and it did make a modification to my `.zshrc` file. Here is the modification it made:

```sh
# >>> juliaup initialize >>>

# !! Contents within this block are managed by juliaup !!

path=('/Users/cameron/.juliaup/bin' $path)
export PATH

# <<< juliaup initialize <<<

```

---

<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:** [August 31, 2024, 5:50pm UTC](https://discourse.julialang.org/t/juliaup-modifications-to-zshrc/118844/5 "2024-08-31T17:50:41Z")

</div>

@CameronBieganek could you open an issue that we should have a better solution for your scenario? I think tools like `cargo` etc have commands to redo these shell script modifications without the full uninstall/install cycle.
