Set rc_dir based on W3M_DIR environment variable.

By default, w3m puts all of its data in the `~/.w3m/` directory
(creating it as necessary). This was not configurable in any way.

This commit adds some quick reconfigurability -- when the "W3M_DIR"
environment variable is set, w3m will use that location instead. The
default location is unchanged.

Fixes #130.
This commit is contained in:
Yash Lala
2021-12-11 22:37:52 -08:00
parent 2b59b9eb0a
commit 26284ff627
4 changed files with 80 additions and 28 deletions

View File

@@ -725,7 +725,7 @@ from Tatsuya Kinoshita <tats@debian.org>
</dt>
<dd>
<p>
It is ~/.w3m/config.
By default, it is ~/.w3m/config.
</p>
<p>
@@ -734,6 +734,12 @@ from Tatsuya Kinoshita <tats@debian.org>
setting panel. Each line contains one option setting, consisting
of an option name and its value with a space as a separator.
</p>
<p>
If the W3M_DIR environment variable is set to the name of a
directory, w3m will store its files in that directory instead of
in ~/.w3m.
</p>
<p>Without a user-specific configuration file, w3m honours
the system wide configuration file /etc/w3m/config.