From e5a9f097090106d588a6c8f428d93e84d503fc0f Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 9 Aug 2024 20:46:23 +0100 Subject: [PATCH] Enable scoop completions when installed --- profile.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profile.ps1 b/profile.ps1 index 6341c7b..74be4b7 100644 --- a/profile.ps1 +++ b/profile.ps1 @@ -6,6 +6,10 @@ $GitPromptSettings.DefaultPromptPrefix.Text = "" $GitPromptSettings.DefaultPromptSuffix.Text = "" $GitPromptSettings.BeforeStatus = "" $GitPromptSettings.AfterStatus = "" +# Enable Scoop completions. +if (Get-Command scoop.ps1 -ErrorAction SilentlyContinue) { + Import-Module "$($(Get-Item $(Get-Command scoop.ps1).Path).Directory.Parent.FullName)\modules\scoop-completion" +} # Enable Chocolatey completions. Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" # Enable op completions.