From 561c32317a3ec5d0bac63eb9e032678b8fb8e985 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nuget/chocolatey/tools/chocolateysetup.psm1 b/nuget/chocolatey/tools/chocolateysetup.psm1 index 6dd5334074..ef0e9f5f45 100644 --- a/nuget/chocolatey/tools/chocolateysetup.psm1 +++ b/nuget/chocolatey/tools/chocolateysetup.psm1 @@ -612,7 +612,11 @@ 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://ch0.co/tab-completion for details. $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" if (Test-Path($ChocolateyProfile)) { Import-Module "$ChocolateyProfile"