1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 10:24:11 +01:00

merge new VIMPERATOR_HOME env variable support

This commit is contained in:
Doug Kearns
2007-09-25 19:37:09 +00:00
parent 4ab5832072
commit 7374bda39b
2 changed files with 6 additions and 2 deletions

View File

@@ -112,10 +112,13 @@ const vimperator = (function() //{{{
if (WINDOWS)
path = path.replace('/', '\\', 'g');
// expand "~" to HOME (USERPROFILE or HOMEDRIVE\HOMEPATH on Windows if HOME is not set)
// expand "~" to VIMPERATOR_HOME or HOME (USERPROFILE or HOMEDRIVE\HOMEPATH on Windows if HOME is not set)
if (/^~/.test(path))
{
var home = environment_service.get("HOME");
var home = environment_service.get("VIMPERATOR_HOME");
if (!home)
home = environment_service.get("HOME");
if (WINDOWS && !home)
home = environment_service.get("USERPROFILE") ||