How do I set the path permanently?

Every time I invoke the Octave 6.2.0 GUI (on Windows 10), my first task is always to open the file browser, navigate to the parent directory of my source directory, scroll down to find my source directory, right-click on it, and select “Add to path … selected directories and subdirectories”.

How can I automate this so that I don’t have to do it by hand every time?

The only help page I’ve been able to find about the load path is Manipulating the Load Path (GNU Octave (version 6.2.0)), which doesn’t say anything about the GUI or about how to save my settings for future settings.

Thanks!

Try using the Set Path dialog that is opened with the menu EditSet Path. This dialog allows to save your changes by Save. This adds the correspnding addpath command to your .octaverc file, which is run at startup of Octave.

For the general startup directory of Octave, please open the GUI Preferences dialog (menu EditPreferences), and in the tab General, scroll down to the bottom where you will find the Octave Startup section allowing to set the startup directory.

Thanks!