Suggested .octaverc for GNU Octave

Related: All my GNU Octave posts

Octave 4.2 brought startup.m persistent user settings like Matlab. To keep Matlab compatibility, put Octave-specific startup commands into ~/.octaverc.

Suggested GNU Octave ~/.octaverc startup config file

suppress_verbose_help_message(1)
page_output_immediately(1)
page_screen_output(0)
crash_dumps_octave_core(0)
sigterm_dumps_octave_core(0)
sighup_dumps_octave_core(0)

EDITOR('nano > /dev/tty 2>&1 < /dev/tty %s')

if exist('~/Documents/MATLAB/startup.m', 'file')
  source('~/Documents/MATLAB/startup.m')
endif
  • The dumps options eliminate nuisance octave-workspace files that appear when Octave is ctrl-c exited or crashes.
  • page_output_immediately(1) makes Octave print immediately like Matlab.
  • the if exist statement shares the startup.m file Matlab also uses.

Fastest start Octave without GUI

add to ~/.bash_aliases

alias octave="octave -q --braindead --no-gui"

and be sure you’re not autoloading Octave packages

reference

GNU Octave .octaverc

Leave a Comment