mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Prefer visible Ubuntu profile in Windows Terminal
This commit is contained in:
@@ -208,11 +208,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$targetProfile = $settings.profiles.list |
|
$targetProfile = $settings.profiles.list |
|
||||||
Where-Object { $_.name -eq '{{ windows_terminal_default_profile_name }}' } |
|
Where-Object {
|
||||||
|
$_.name -eq '{{ windows_terminal_default_profile_name }}' -and -not ($_.PSObject.Properties.Name -contains 'hidden' -and $_.hidden)
|
||||||
|
} |
|
||||||
Select-Object -First 1
|
Select-Object -First 1
|
||||||
|
|
||||||
if ($null -eq $targetProfile) {
|
if ($null -eq $targetProfile) {
|
||||||
throw "Windows Terminal profile '{{ windows_terminal_default_profile_name }}' was not found. Ensure the Ubuntu WSL profile exists in Windows Terminal first."
|
throw "Windows Terminal visible profile '{{ windows_terminal_default_profile_name }}' was not found. Ensure the Ubuntu WSL profile exists and is not hidden in Windows Terminal first."
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($settings.defaultProfile -eq $targetProfile.guid) {
|
if ($settings.defaultProfile -eq $targetProfile.guid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user