X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/5a64525e5894c9a4f8201204c631d76a843546f5..1b7137c19b38431c79b41d1dfde73ef76f826836:/mr?ds=inline diff --git a/mr b/mr index 55dbdee..4fc7971 100755 --- a/mr +++ b/mr @@ -1027,7 +1027,9 @@ sub config { #{{{ } #}}} sub register { #{{{ - if (! $config_overridden) { + if ($config_overridden) { + ($directory)=$ENV{MR_CONFIG}=~/^(.*\/)[^\/]+$/; + } else { # Find the closest known mrconfig file to the current # directory. $directory.="/" unless $directory=~/\/$/;