There is ~/.juliarc.jl, which is executed by default for REPL and non-interactive sessions. You can disable it with the option --startup-file={yes|no} Load ~/.juliarc.jl.
Thanks! (I remembered there was a file, just couldn’t remember the name.)
This should be made very prominent in preparation for 0.7. (which is almost unusable without it, as if you forget using LinearAlgebra or using Random you have to start the REPL over again.)
[An rc file is a ] Script file containing startup instructions for an application program (or an entire operating system), usually a text file containing commands of the sort that might have been invoked manually once the system was running but are to be executed automatically each time the system starts up.
Its etymology is obscure (click the link for details), but it’s a unix convention (for example .bashrc).
Hi. I’m trying to locate the startup.jl file but couldn’t find it. There is no config folder in ~/.julia/. I also try to find startup.jl with a fuzzy finder but couldn’t find it. I’m running Julia 1.5. Has this changed in the meantime (with the goal of loading script on startup)? Many thanks in advance
As an experienced Linux user, I wouldn’t bat an eye at .julia/startup.jl either. And if I had to look for Julia’s config file I would write .jul and type tab anyway.
(And secretly think “I hope this is none of that fancy new stuff that puts config files in .config”.)