Determine version lanuched from terminal

I have added C:\Users\username\AppData\Local\Programs\Julia 1.5.3\bin to my path, so that I can launch Julia by typing julia in the terminal. I have since installed 1.6.0 via chocolatey. As far as I can tell, chocolatey have not added anything to my path, and there is no other file-path to the 1.6.0 folder in my “system path enviroment variable”.

However, when I now type julia in a terminal, versioninfo() tells me that 1.6.0 is launched. I would like to continue developing in my 1.5.3 enviroment, and I need it to be launchable via a terminal command.

How do I controll which version of julia is launched? Is it possible to chose to launch 1.6.0 with e.g. julia160 and 1.5.3 with julia153? Or, if I have to choose, how do I do so?

I use Powershell, here is what I do,
you can define aliases in $profile:

New-Alias julia1.6.0 C:\\Users\\user\\AppData\\Local\\Programs\\Julia-1.6.0\\bin\\julia.exe
New-Alias julia1.5.3 C:\\Users\\user\\AppData\\Local\\Programs\\Julia-1.5.3\\bin\\julia.exe
New-Alias julia julia1.5.3

to see where it is and edit it:

echo $profile
notepad $profile
4 Likes