mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 12:05:47 +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") ||
|
IO.__defineGetter__("runtimePath", function () {
|
||||||
"~/" + (liberator.has("Win32") ? "" : ".") + config.name.toLowerCase());
|
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)
|
IO.expandPath = function (path, relative)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -604,6 +604,9 @@ plugin/ +
|
|||||||
Example: [c]:set runtimepath=\~/myvimperator,\~/.vimperator[c] +
|
Example: [c]:set runtimepath=\~/myvimperator,\~/.vimperator[c] +
|
||||||
This will search for plugins in both "\~/myvimperator/plugin" and
|
This will search for plugins in both "\~/myvimperator/plugin" and
|
||||||
"\~/.vimperator/plugin"
|
"\~/.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