Silence errors concerning empty aliae configurations

This commit is contained in:
Manuel Thalmann 2024-08-27 22:35:31 +02:00
parent 080812b90a
commit 208f48debe

View file

@ -34,11 +34,11 @@ Start-SoftwareInstaller @PSBoundParameters `
}; };
if (Test-Path $globalPath) { if (Test-Path $globalPath) {
& ([scriptblock]::Create((aliae init pwsh --config $globalPath))); $null = & ([scriptblock]::Create((aliae init pwsh --config $globalPath))) *>&1;
} }
if (Test-Path $userPath) { if (Test-Path $userPath) {
& ([scriptblock]::Create((aliae init pwsh))); $null = & ([scriptblock]::Create((aliae init pwsh))) *>&1;
} }
aliae completion powershell | Out-String | Invoke-Expression; aliae completion powershell | Out-String | Invoke-Expression;