From 0d043edbf591926023915001bb11cdc76e2ab8af Mon Sep 17 00:00:00 2001 From: AdmiringWorm Date: Thu, 3 Mar 2022 13:29:23 +0100 Subject: [PATCH] (#2443) Update comment about chocolatey profile This commit updates the injection of importing the chocolatey profile to include extra comment details to mention what the import of the module is used for. --- nuget/chocolatey/tools/chocolateysetup.psm1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nuget/chocolatey/tools/chocolateysetup.psm1 b/nuget/chocolatey/tools/chocolateysetup.psm1 index 6dd5334074..0446cfb098 100644 --- a/nuget/chocolatey/tools/chocolateysetup.psm1 +++ b/nuget/chocolatey/tools/chocolateysetup.psm1 @@ -612,7 +612,12 @@ function Add-ChocolateyProfile { $profileInstall = @' -# Chocolatey profile +# 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 you profile, tab completion +# for `choco` wil not function. +# See https://docs.chocolatey.org/en-us/troubleshooting#why-does-choco-intab-not-work-for-me +# for details. $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" if (Test-Path($ChocolateyProfile)) { Import-Module "$ChocolateyProfile"