Skip to content

Instantly share code, notes, and snippets.

@ConnerWill
Created May 18, 2022 02:32
Show Gist options
  • Save ConnerWill/184df20f3ab3077f95d0279eb661146c to your computer and use it in GitHub Desktop.
Save ConnerWill/184df20f3ab3077f95d0279eb661146c to your computer and use it in GitHub Desktop.
Enable Chocolatey (choco) tab completion for PowerShell. Code block is to be added to your PowerShell profile (“$profile”). Source: https://docs.chocolatey.org/en-us/troubleshooting
# Import the Chocolatey Profile that contains the necessary code to enable
# tab-completions to function for `choco`.
# Be aware that if you are missing these lines from your profile, tab completion
# for `choco` will not function.
# See https://ch0.co/tab-completion for details.
# Source https://docs.chocolatey.org/en-us/troubleshooting
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment