Opt out of powershell auto update
Arnaud Rebillout
2 years ago
92 | 92 | # Propose to install commands not found |
93 | 93 | set_env_var_if_unset COMMAND_NOT_FOUND_INSTALL_PROMPT 1 |
94 | 94 | |
95 | # Opt-out of powershell auto update | |
96 | # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_update_notifications | |
97 | set_env_var_if_unset POWERSHELL_UPDATECHECK Off | |
98 | ||
95 | 99 | # Opt-out of powershell telemetry reporting |
100 | # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_telemetry | |
96 | 101 | set_env_var_if_unset POWERSHELL_TELEMETRY_OPTOUT 1 |
97 | 102 | |
98 | 103 | # Opt-out of dotnet sdk telemetry reporting |
104 | # https://docs.microsoft.com/en-us/dotnet/core/tools/telemetry | |
99 | 105 | set_env_var_if_unset DOTNET_CLI_TELEMETRY_OPTOUT 1 |
100 | 106 | } |
101 | 107 |