X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/c2658ac188a6f6937d729752880e1473e932322c..1b7137c19b38431c79b41d1dfde73ef76f826836:/mr?ds=sidebyside 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=~/\/$/;