.octaverc: Difference between revisions
Jump to navigation
Jump to search
no edit summary
No edit summary |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
The .octaverc file is the octave [https://en.wikipedia.org/wiki/Configuration_file configuration file] on Linux that resides in the user's home directory (~). 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]. | The .octaverc file is the octave [https://en.wikipedia.org/wiki/Configuration_file configuration file] on Linux that resides in the user's home directory (~). 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 of configuration options 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'' | ||
Line 13: | Line 10: | ||
* '''set(0,'defaultfigurecolormap',gray(256));''' ''# set colormap to gray(256)'' | * '''set(0,'defaultfigurecolormap',gray(256));''' ''# set colormap to gray(256)'' | ||
* '''suppress_verbose_help_message(1);''' ''# use concise form for help'' | * '''suppress_verbose_help_message(1);''' ''# use concise form for help'' | ||
* '''page_screen_output(0);''' ''# write text to screen without buffering'' | |||
* '''warning("off","Octave:divide-by-zero");''' ''# disable unwanted warning messages'' | * '''warning("off","Octave:divide-by-zero");''' ''# disable unwanted warning messages'' | ||
* '''warning("off","Octave:possible-matlab-short-circuit-operator"); | |||
==.inputrc== | |||
The behaviour of the command line cursor in Octave is controlled by a separate codebase (readline), which has its own configuration file (.inputrc). Examples of useful entries in this file are given below and in ''??need a good reference for readline options??''. | The behaviour of the command line cursor in Octave is controlled by a separate codebase (readline), which has its own configuration file (.inputrc). Examples of useful entries in this file are given below and in ''??need a good reference for readline options??''. | ||
* '''set blink-matching-paren off''' ''# prevent blinking parenthesis matching'' | * '''set blink-matching-paren off''' ''# prevent blinking parenthesis matching'' | ||
'' |