X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/c2658ac188a6f6937d729752880e1473e932322c..46047e7a80111656bba297b17fa55353e3d83509:/mr?ds=inline diff --git a/mr b/mr index 55dbdee..3148a3f 100755 --- a/mr +++ b/mr @@ -1027,7 +1027,12 @@ sub config { #{{{ } #}}} sub register { #{{{ - if (! $config_overridden) { + if ($config_overridden) { + # Find the directory that the specified config file is + # located in. + ($directory)=abs_path($ENV{MR_CONFIG})=~/^(.*\/)[^\/]+$/; + } + else { # Find the closest known mrconfig file to the current # directory. $directory.="/" unless $directory=~/\/$/;