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 authored and gep13 committed Mar 7, 2022
1 parent 3067dc8 commit 561c323
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nuget/chocolatey/tools/chocolateysetup.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 561c323

Please sign in to comment.