Question on Starting Julia with Sys Image

I’ve created a system image following the example described here for OhMyREPL.

I can now do the following, and it works!

julia --sysimage=OMR-sysimage.so

But typing that every time is a bit cumbersome.

Can loading the image be somehow incorporated into startup.jl? Or do I need to redefine the julia command somehow (like in the .bashrc?).

I would recommend using an alias for the Julia command defined inside .bashrc.

To alias your Julia command, add the following line in your .bashrc:

alias julia="julia --sysimage=/full/path/to/sysimage.so"