Menu

#18 Customizable ~/.joe directory

Future
open
nobody
None
5
2018-01-16
2018-01-16
inof
No

Sometimes it would be useful to have two (or more) completely different configurations, and choose one when starting joe. Currently it is possible to make a symlink (or hardlink) ― e.g. myjoe -> joe ― and when you run myjoe, it will load ~/.myjoerc instead of ~/.joerc. That's fine. However, it still loads syntax files and colors files from the ~/.joe directory.
Therefore I would like to ask for a way to make the name of the ~/.joe directory configurable. There are several ways to do that. You could simply change the name according to argv[0], just like the ~/.joerc file, so it would be ~/.myjoe the in the above example. Or provide an option for the .joerc file to specify the name of the directory (relative to the home diorectory), so you could add a line “-joe_dir .myjoe”, for example.
That would also make it easier to work with environments where the home directory is shared between different machines that have different versions of joe installed. That's not a contrived example, it's actually the case at the company where I work.

Discussion


Log in to post a comment.