How to permanently change the default working path of julia?

Viewed 104

I was able to temporarily change it with the following command, but after reboot the working path still changes to C drive.

cd("D:\\jl files”)
1 Answers

As it is explained in the Julia Manual Getting Started section the simplest thing to do is to add the:

cd("D:\\jl files")

line to your ~/.julia/config/startup.jl file (this is a Linux path; if the file does not exist then you should create it with this single line). Since you are on Windows then ~ part should be replaced by default is your user profile folder (it should be possible to check it with ENV["USERPROFILE"] command in Julia). However, if you have a custom installation the .julia folder can be placed in some other folder so you need to check it on your system.

Related