From db582053417f37b71700e2b52500e0e309d0e151 Mon Sep 17 00:00:00 2001 From: Szymon Osiecki Date: Wed, 2 Oct 2024 22:43:30 +0200 Subject: [PATCH] fix(ps): profiles --- .assets/config/pwsh_cfg/profile.ps1 | 2 +- .assets/provision/setup_profile_user.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.assets/config/pwsh_cfg/profile.ps1 b/.assets/config/pwsh_cfg/profile.ps1 index f6da4f87..443efbd8 100644 --- a/.assets/config/pwsh_cfg/profile.ps1 +++ b/.assets/config/pwsh_cfg/profile.ps1 @@ -69,7 +69,7 @@ Remove-Variable path #region prompt if (-not $isWSL1 -and (Test-Path '/usr/bin/oh-my-posh')) { - oh-my-posh --init --shell pwsh --config "$(Resolve-Path $env:OMP_PATH/theme.omp.json -ErrorAction Stop)" | Invoke-Expression + oh-my-posh --init --shell pwsh --config "$(Resolve-Path $env:OMP_PATH/theme.omp.json -ErrorAction Stop)" | Invoke-Expression | Out-Null # disable venv prompt as it is handled in oh-my-posh theme [Environment]::SetEnvironmentVariable('VIRTUAL_ENV_DISABLE_PROMPT', $true) } else { diff --git a/.assets/provision/setup_profile_user.ps1 b/.assets/provision/setup_profile_user.ps1 index 8c7f7fd0..d17bbede 100755 --- a/.assets/provision/setup_profile_user.ps1 +++ b/.assets/provision/setup_profile_user.ps1 @@ -60,7 +60,7 @@ if (Test-Path $HOME/miniconda3/bin/conda -PathType Leaf) { Write-Verbose 'adding miniconda initialization...' $content = [string]::Join("`n", '#region conda initialize', - 'try { (& "$HOME/miniconda3/bin/conda" "shell.powershell" "hook") | Out-String | Invoke-Expression } catch { Out-Null }', + 'try { (& "$HOME/miniconda3/bin/conda" "shell.powershell" "hook") | Out-String | Invoke-Expression | Out-Null } catch { Out-Null }', '#endregion' ) [System.IO.File]::AppendAllText($PROFILE.CurrentUserAllHosts, $content)