Skip to content

Commit

Permalink
remove Posh upgrade settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jpawlowski committed Aug 28, 2024
1 parent 618d35a commit 86f83ba
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions src/powershell-extended/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"powershell"
],
"version": "2.0.0",
"description": "Installs PowerShell on AMD64 and ARM64 architectures, with optional resources from the PowerShell Gallery via PSResourceGet. Includes a custom Oh My Posh terminal prompt theme and customizable profile files. Supports advanced installation options.",
"description": "Installs PowerShell on AMD64 and ARM64 architectures, with optional resources from the PowerShell Gallery via PSResourceGet. Includes a custom Oh My Posh terminal prompt theme and customizable profile files. Supports advanced installation options for PowerShell modules and scripts.",
"documentationURL": "https://github.com/jpawlowski/devcontainer-features/tree/main/src/powershell-extended",
"licenseURL": "https://github.com/jpawlowski/devcontainer-features/tree/main/LICENSE.txt",
"keywords": [
Expand Down Expand Up @@ -112,7 +112,6 @@
"POWERSHELL_DISTRIBUTION_CHANNEL": "DevContainer-Feature:PowerShell-Extended",

"PSPROFILE_PSREADLINE_EDITMODE": "Emacs",
"PSPROFILE_POSH_DISABLE_UPGRADE_NOTICE": "true",
"PSPROFILE_ALIAS_DIR_FORCE": "false",
"PSPROFILE_ALIAS_DIR_HIDDEN": "true",
"PSPROFILE_ALIAS_DIR_SORT": "true",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ try {
#endregion Environment -------------------------------------------------

# #region Oh My Posh ===================================================
$__PSProfileEnvOhMyPoshDisableUpgradeNotice = [System.Environment]::GetEnvironmentVariable('PSPROFILE_POSH_DISABLE_UPGRADE_NOTICE')
$__PSProfileEnvOhMyPoshTheme = [System.Environment]::GetEnvironmentVariable('PSPROFILE_POSH_THEME')
if ($null -eq $__PSProfileEnvOhMyPoshDisableUpgradeNotice -or $__PSProfileEnvOhMyPoshDisableUpgradeNotice -eq $true) { __PSProfile-Set-OhMyPosh-UpdateNotice -Disable }
if ($null -ne $__PSProfileEnvOhMyPoshTheme) { __PSProfile-Enable-OhMyPosh-Theme -ThemeName $__PSProfileEnvOhMyPoshTheme } else { __PSProfile-Enable-OhMyPosh-Theme }
if ([System.Environment]::GetEnvironmentVariable('PSPROFILE_TERMINAL_COMPLETION_POSH') -eq $true -and $null -ne [System.Environment]::GetEnvironmentVariable('POSH_PID')) { Invoke-Expression -Command $(oh-my-posh completion powershell | Out-String) }
# #endregion Oh My Posh ------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ try {
#endregion Environment -------------------------------------------------

#region Oh My Posh =====================================================
$__PSProfileEnvOhMyPoshDisableUpgradeNotice = [System.Environment]::GetEnvironmentVariable('PSPROFILE_POSH_DISABLE_UPGRADE_NOTICE')
$__PSProfileEnvOhMyPoshTheme = [System.Environment]::GetEnvironmentVariable('PSPROFILE_VSCODE_POSH_THEME')
if ($null -eq $__PSProfileEnvOhMyPoshDisableUpgradeNotice -or $__PSProfileEnvOhMyPoshDisableUpgradeNotice -eq $true) { __PSProfile-Set-OhMyPosh-UpdateNotice -Disable }
if ($null -ne $__PSProfileEnvOhMyPoshTheme) { __PSProfile-Enable-OhMyPosh-Theme -ThemeName $__PSProfileEnvOhMyPoshTheme } else { __PSProfile-Enable-OhMyPosh-Theme }
if ([System.Environment]::GetEnvironmentVariable('PSPROFILE_VSCODE_TERMINAL_COMPLETION_POSH') -eq $true -and $null -ne [System.Environment]::GetEnvironmentVariable('POSH_PID')) { Invoke-Expression -Command $(oh-my-posh completion powershell | Out-String) }
#endregion Oh My Posh --------------------------------------------------
Expand Down

0 comments on commit 86f83ba

Please sign in to comment.