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