Install aliae completion using profile files

This commit is contained in:
Manuel Thalmann 2024-03-20 19:35:46 +01:00
parent b3c1c20b72
commit eaf9ed7f8a
3 changed files with 12 additions and 10 deletions
scripts/Common/Config/aliae

View file

@ -14,12 +14,3 @@ script:
Get-Item $profilePath | ForEach-Object { . $_; };
}
if: match .Shell "pwsh"
- value: |
eval "$(aliae completion bash)"
if: match .Shell "bash"
- value: |
aliae completion fish | source
if: match .Shell "fish"
- value: |
aliae completion powershell | Invoke-Expression
if: match .Shell "pwsh"

View file

@ -2,3 +2,4 @@
. "$PSScriptRoot/../powershell/lib.ps1";
Add-PowerShellProfileStatement -Statement "# aliae`naliae init pwsh | Invoke-Expression";
Add-PowerShellProfileStatement -Statement "# aliae`n$(Get-ScriptInitializer "aliae completion powershell")";