Setenv on startup

I’m new to octave and to command line editing in general. I have set octave to use my system python using setenv, but would like to know how to make it stick, so I don’t have to start every session by changing the environment. Would appreciate as much detail as possible.

My system

  • OS: e.g. Mac 11.2.3
  • Octave version: e.g. Version 6.1.0
  • Installation method: Downloaded and installed “octave-6.1.0-w64-installer.exe” from

.octaverc files are located in several places as described in:

these files can contain commands that will be executed at startup.