public static function getCurrentConfigDir()
    {
        $configDirs = self::getHomeConfigDirs();
        foreach ($configDirs as $configDir) {
            if (@\is_dir($configDir)) {
                return $configDir;
            }
        }

        return $configDirs[0];
    }
public static function getCurrentConfigDir()
    {
        $configDirs = self::getHomeConfigDirs();
        foreach ($configDirs as $configDir) {
            if (@\is_dir($configDir)) {
                return $configDir;
            }
        }

        return $configDirs[0];
    }
public static function getCurrentConfigDir ( ) { $ configDirs = self :: getHomeConfigDirs ( ) ; foreach ( $ configDirs as $ configDir ) { if ( @ \ is_dir ( $ configDir ) ) { return $ configDir ; } } return $ configDirs [ 0 ] ; }
Get the current home config directory.

Returns the highest precedence home config directory which actually
exists. If none of them exists, returns the highest precedence home
config directory (`%APPDATA%/PsySH` on Windows, `~/.config/psysh`
everywhere else).

@see self::getHomeConfigDirs

@return string
Get the current home config directory .