Hide octave-workspace file from home directory

2019-02-26 19:10发布

I would like to change the file octave-workspace from my home directory, simply renaming it to .octave_workspace. How can I manage to make octave recognize a workspace file (or create a new one) with this new name?

Thanks.

2条回答
爷、活的狠高调
2楼-- · 2019-02-26 19:45

OSX Solution:

You can use chflags

To hide a file from Finder:

chflags hidden /Path/To/File

To unhide:

chflags nohidden /Path/To/File

Linux Solution:

From what I'm reading here, you can create a "hidden" files file, which contains a list of files to hide. I haven't read it fully, nor did I test it, as I don't use Linux.

http://www.fandigital.com/2012/09/better-way-to-hide-file-folder-in.html

查看更多
看我几分像从前
3楼-- · 2019-02-26 19:48

That is the purpose of the octave_core_file_name() function.

Add the following to your .octaverc file:

octave_core_file_name (".octave-workspace")
查看更多
登录 后发表回答