mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-05 19:55:45 +01:00
When setting rtp on startup, set VIMPERATOR_RUNTIME to match if it doesn't already exist.
This commit is contained in:
@@ -922,8 +922,14 @@ lookup:
|
||||
|
||||
}; //}}}
|
||||
|
||||
IO.__defineGetter__("runtimePath", function () services.get("environment").get(config.name.toUpperCase() + "_RUNTIME") ||
|
||||
"~/" + (liberator.has("Win32") ? "" : ".") + config.name.toLowerCase());
|
||||
IO.__defineGetter__("runtimePath", function () {
|
||||
let getrtp = services.get("environment").get(config.name.toUpperCase() + "_RUNTIME");
|
||||
if( ! getrtp )
|
||||
{
|
||||
getrtp = "~/" + (liberator.has("Win32") ? "" : ".") + config.name.toLowerCase();
|
||||
services.get("environment").set(config.name.toUpperCase() + "_RUNTIME", getrtp);
|
||||
}
|
||||
return getrtp; });
|
||||
|
||||
IO.expandPath = function (path, relative)
|
||||
{
|
||||
|
||||
@@ -604,6 +604,9 @@ plugin/ +
|
||||
Example: [c]:set runtimepath=\~/myvimperator,\~/.vimperator[c] +
|
||||
This will search for plugins in both "\~/myvimperator/plugin" and
|
||||
"\~/.vimperator/plugin"
|
||||
|
||||
On startup, if the environment variable _$VIMPERATOR_RUNTIME_ does not
|
||||
exist, Vimperator will set it to match this value.
|
||||
____
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user