diff --git a/scripts/Common/Scripts/Config.ps1 b/scripts/Common/Scripts/Config.ps1 index f51caae7..99ac893c 100644 --- a/scripts/Common/Scripts/Config.ps1 +++ b/scripts/Common/Scripts/Config.ps1 @@ -164,7 +164,7 @@ $null = New-Module { $scriptPath = "$PSScriptRoot/../../Common/Scripts/config.fish"; - if ($env:CONFIG_NAME) { + if ($env:CONFIG_NAME -or ($Script -eq "getProfiles")) { $output = & { if (-not $IsWindows) { $escapedPath = (fish -c 'string escape $argv' "$scriptPath"); diff --git a/scripts/Common/Scripts/Operations.ps1 b/scripts/Common/Scripts/Operations.ps1 index dd273709..eb83481e 100644 --- a/scripts/Common/Scripts/Operations.ps1 +++ b/scripts/Common/Scripts/Operations.ps1 @@ -259,6 +259,10 @@ $null = New-Module { } }; + if (-not $env:CONFIG_NAME) { + Show-ProfileNamePrompt; + } + $initialized = $true; } }