Add glab auto-completion.

This commit is contained in:
Mikael CAPELLE 2023-07-03 18:09:27 +02:00
parent c35e62cc96
commit bbd7660c0a

View File

@ -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 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-ssh
Import-Module posh-venv Import-Module posh-venv
Import-Module DockerCompletion Import-Module DockerCompletion
Import-Module Set-PsEnv
Enable-Dotenv
Set-PSReadLineOption -PredictionSource History Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -HistorySearchCursorMovesToEnd Set-PSReadLineOption -HistorySearchCursorMovesToEnd
@ -31,3 +30,7 @@ if (Get-Command kubectl -ErrorAction SilentlyContinue) {
if (Get-Command helm -ErrorAction SilentlyContinue) { if (Get-Command helm -ErrorAction SilentlyContinue) {
helm completion powershell | Out-String | Invoke-Expression helm completion powershell | Out-String | Invoke-Expression
} }
if (Get-Command glab -ErrorAction SilentlyContinue) {
glab completion -s powershell | Out-String | Invoke-Expression
}