Hide octave-workspace file from home directory

情到浓时终转凉″ 提交于 2019-12-02 03:24:00

问题


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.


回答1:


That is the purpose of the octave_core_file_name() function.

Add the following to your .octaverc file:

octave_core_file_name (".octave-workspace")



回答2:


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



来源:https://stackoverflow.com/questions/23635187/hide-octave-workspace-file-from-home-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!