Hacker News new | ask | show | jobs
by hashmymustache 2241 days ago
From the Microsoft website: “The telemetry reporting can be disabled by setting the environment variable POWERSHELL_TELEMETRY_OPTOUT to true, yes, or 1. This should not be done in your profile, as PowerShell reads this value from your system before executing your profile.”
1 comments

It's not supposed to go into the PowerShell $profile; .bash_profile which later starts pwsh should be fine.