Difference between revisions of ".octaverc"

From Octave
Jump to navigation Jump to search
Line 1: Line 1:
 
= The .octaverc File =
 
= The .octaverc File =
  
The .octaverc file is the octave [https://en.wikipedia.org/wiki/Configuration_file configuration file] on Linux. It has basically the same role as startup.m in Matlab (Octave also you might want to soft link startup.m and .octaverc to avoid duplicating). Many basic settings can be put here. Further information is given in the [https://www.gnu.org/software/octave/doc/interpreter/Startup-Files.html documentation].
+
The .octaverc file is the octave [https://en.wikipedia.org/wiki/Configuration_file configuration file] on Linux. It has basically the same role as startup.m in Matlab (you might want to soft link startup.m and .octaverc to avoid duplication). Many basic settings can be put here. Further information is given in the [https://www.gnu.org/software/octave/doc/interpreter/Startup-Files.html documentation].
  
Some handy examples are given below, as well and on the [[Tips_and_tricks|Tips and tricks]] page.
+
Some handy examples of configuration options are given below, as well and on the [[Tips_and_tricks|Tips and tricks]] page.
  
 
* '''edit mode async''' ''# make spawned processes run in background''
 
* '''edit mode async''' ''# make spawned processes run in background''

Revision as of 02:34, 11 December 2015

The .octaverc File

The .octaverc file is the octave configuration file on Linux. It has basically the same role as startup.m in Matlab (you might want to soft link startup.m and .octaverc to avoid duplication). Many basic settings can be put here. Further information is given in the documentation.

Some handy examples of configuration options are given below, as well and on the Tips and tricks page.

  • edit mode async # make spawned processes run in background
  • EDITOR('gvim > /dev/tty 2>&1 < /dev/tty %s') # use gvim as the default editor
  • more off # scroll screen output automatically
  • history_control ("ignoredups"); # ignore duplicates in command history
  • crash_dumps_octave_core(0); # never dump octave-core
  • sigterm_dumps_octave_core(0);
  • sighup_dumps_octave_core(0);
  • set(0,'defaultfigurecolormap',gray(256)); # set colormap to gray(256)
  • suppress_verbose_help_message(1); # use concise form for help
  • warning("off","Octave:divide-by-zero"); # disable unwanted warning messages