configHomeDir property

String get configHomeDir

Implementation

String get configHomeDir =>
    _configHomeDir ??
    (() {
      final xdg = Platform.environment['XDG_CONFIG_HOME'];
      if (xdg != null && xdg.isNotEmpty) return p.join(xdg, 'neomage');
      final home =
          Platform.environment['HOME'] ??
          Platform.environment['USERPROFILE'] ??
          '';
      return p.join(home, '.neomage');
    })();