Created
May 18, 2022 02:32
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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