2014-03-19 19 views

回答

8

您可以在行添加到.octaverc文件。如果這些文件不存在,只需在您的主目錄中創建它即可。除非您通過-f--norc選項,否則每次啓動Octave時都會執行此文件。

您可以添加許多其他東西給你.octaverc文件。作爲一個例子,這是我的一部分:

## use man instead of help 
function man (name = "help"); 
    mlock(); # lock in memory so it's not removed by clear all 
    help (char (name)); 
endfunction 

## no octave-core 
crash_dumps_octave_core (0); 

EDITOR ("nano"); 
edit ("mode", "sync"); 

## pretty prompt 
PS1 ("\\[\\033[01;31m\\]\\s:\\#> \\[\\033[0m\\]"); 
## no > for multi-line input 
PS2 (""); 

## default image size to take the right half of the monitor 
set (0, 
    "DefaultFigurePosition", 
    [get(0, "screensize")(3)/2 1 ... 
    get(0, "screensize")(3)/2 get(0, "screensize")(4)] 
); 
+1

在顯示器右半部分的圖像技巧是好的。 – juliohm

相關問題