. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../Common/Scripts/SoftwareManagement.ps1"; Start-SoftwareInstaller @args ` -UserConfigurator { param( $Arguments ) $bins = @("codium", "codium-insiders", "code", "code-insiders"); $extensions = @("zokugun.sync-settings", "zokugun.vsix-manager"); $user = $Arguments.Name; foreach ($bin in $bins) { if (Test-Command "$bin") { foreach ($extension in $extensions) { sudo -u "$user" "$bin" --install-extension "$extension"; } } } };