From bbd7660c0a619a5a86da5154ff7bb6a23fd47ecb Mon Sep 17 00:00:00 2001 From: Mikael CAPELLE Date: Mon, 3 Jul 2023 18:09:27 +0200 Subject: [PATCH] Add glab auto-completion. --- Microsoft.PowerShell_profile.ps1 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 938e299..b236ce9 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -8,13 +8,12 @@ $env:VIRTUAL_ENV_DISABLE_PROMPT = "True" oh-my-posh init pwsh --config (Join-Path $profile_folder theme.omp.json) | Invoke-Expression -function docker { - wsl -- docker $args -} - Import-Module posh-ssh Import-Module posh-venv Import-Module DockerCompletion +Import-Module Set-PsEnv + +Enable-Dotenv Set-PSReadLineOption -PredictionSource History Set-PSReadLineOption -HistorySearchCursorMovesToEnd @@ -31,3 +30,7 @@ if (Get-Command kubectl -ErrorAction SilentlyContinue) { if (Get-Command helm -ErrorAction SilentlyContinue) { helm completion powershell | Out-String | Invoke-Expression } + +if (Get-Command glab -ErrorAction SilentlyContinue) { + glab completion -s powershell | Out-String | Invoke-Expression +}