Improved update message
I just upgraded to Julia 1.9.1, and noticed this message took up a fair bit of space:
Add this directory to the system PATH to make the command available in your shell.
~$ juliaup update
Installing Julia 1.9.1+0.x64.linux.gnu
Creating symlink julia-1.9 for Julia 1.9.1+0.x64.linux.gnu.
Symlink julia-1.9 added in /home/tec/.julia/juliaup/bin/julia-1.9. Add this directory to the system PATH to make the command available in your shell.
Creating symlink julia-release for Julia 1.9.1+0.x64.linux.gnu.
Symlink julia-release added in /home/tec/.julia/juliaup/bin/julia-release. Add this directory to the system PATH to make the command available in your shell.
Creating symlink julia-beta for Julia 1.9.1+0.x64.linux.gnu.
Symlink julia-beta added in /home/tec/.julia/juliaup/bin/julia-beta. Add this directory to the system PATH to make the command available in your shell.
It occurs to me that it should be pretty trivial to check if the Juliaup bin directory is already on PATH (as is the case on my system) and omit the message when it's not needed.
~$ juliaup update
Installing Julia 1.9.1+0.x64.linux.gnu
Creating symlink julia-1.9 for Julia 1.9.1+0.x64.linux.gnu.
Symlink julia-1.9 added in /home/tec/.julia/juliaup/bin/julia-1.9.
Creating symlink julia-release for Julia 1.9.1+0.x64.linux.gnu.
Symlink julia-release added in /home/tec/.julia/juliaup/bin/julia-release.
Creating symlink julia-beta for Julia 1.9.1+0.x64.linux.gnu.
Symlink julia-beta added in /home/tec/.julia/juliaup/bin/julia-beta.
For updating in particular, I think the output could be cleaned up further, for instance
~$ juliaup update
Installing Julia 1.9.1+0.x64.linux.gnu
Updated julia-1.9 symlink to point to Julia 1.9.1+0.x64.linux.gnu.
Updated julia-release to point to Julia 1.9.1+0.x64.linux.gnu.
Updated julia-beta symlink to point to 1.9.1+0.x64.linux.gnu.
You could even include the old release information, e.g.
~$ juliaup update
Installing Julia 1.9.1+0.x64.linux.gnu
Updated julia-1.9 symlink (Julia 1.9.1+0.x64.linux.gnu → Julia 1.9.1+0.x64.linux.gnu).
Updated julia-release symlink (Julia 1.9.1+0.x64.linux.gnu → Julia 1.9.1+0.x64.linux.gnu).
Updated julia-beta symlink (Julia 1.9.1+0.x64.linux.gnu → Julia 1.9.1+0.x64.linux.gnu).
If you wanted to go the extra mile, you could even consolidate multiple symlinks updated to the same release, e.g.
~$ juliaup update
Installing Julia 1.9.1+0.x64.linux.gnu
Updated three symlinks (Julia 1.9.1+0.x64.linux.gnu → 1.9.0+0.x64.linux.gnu):
• julia-1.9
• julia-release
• julia-beta
So the first suggestion here, to not show the message about the PATH when the folder is on the PATH, is a bug. There was a check to do just that, but it was incorrect. I just opened a PR that should fix that.
I'll leave the issue open for the other suggestions. If someone wants to take those up, they seem like great first issues for someone to contribute here!