Skip to content

Commit

Permalink
(chocolatey#2443) Update comment about chocolatey profile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AdmiringWorm committed Mar 3, 2022
1 parent 9fa89d3 commit 0d043ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nuget/chocolatey/tools/chocolateysetup.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0d043ed

Please sign in to comment.