From a0e9c035258e9e9e997ba2bcc8f8c63ad7e5916f Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 23 Mar 2024 04:55:05 +0100 Subject: [PATCH] Install Powershell profile statements globally --- scripts/Common/Config/Oh My Posh/install.ps1 | 1 + scripts/Windows/Config/Terminal-Icons/Install.ps1 | 2 +- scripts/Windows/Config/posh-git/Install.ps1 | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/Common/Config/Oh My Posh/install.ps1 b/scripts/Common/Config/Oh My Posh/install.ps1 index d753061f..9a35aeda 100644 --- a/scripts/Common/Config/Oh My Posh/install.ps1 +++ b/scripts/Common/Config/Oh My Posh/install.ps1 @@ -2,6 +2,7 @@ . "$PSScriptRoot/../powershell/lib.ps1"; Add-PowerShellProfileStatement ` + -System ` -Category "oh-my-posh" ` -Statement $( @( diff --git a/scripts/Windows/Config/Terminal-Icons/Install.ps1 b/scripts/Windows/Config/Terminal-Icons/Install.ps1 index a717b2b4..5834a923 100644 --- a/scripts/Windows/Config/Terminal-Icons/Install.ps1 +++ b/scripts/Windows/Config/Terminal-Icons/Install.ps1 @@ -1,3 +1,3 @@ #!/bin/pwsh . "$PSScriptRoot/../../../Common/Config/powershell/lib.ps1"; -Add-PowerShellProfileStatement -Category "Terminal-Icons" -Statement 'Import-Module "Terminal-Icons";'; +Add-PowerShellProfileStatement -System -Category "Terminal-Icons" -Statement 'Import-Module "Terminal-Icons";'; diff --git a/scripts/Windows/Config/posh-git/Install.ps1 b/scripts/Windows/Config/posh-git/Install.ps1 index d383b61c..f67b93de 100644 --- a/scripts/Windows/Config/posh-git/Install.ps1 +++ b/scripts/Windows/Config/posh-git/Install.ps1 @@ -1,4 +1,4 @@ #!/bin/pwsh . "$PSScriptRoot/../../../Common/Config/powershell/lib.ps1"; Write-Host "Configuring posh-git"; -Add-PowerShellProfileStatement -Category "posh-git" -Statement 'Import-Module "posh-git";' +Add-PowerShellProfileStatement -System -Category "posh-git" -Statement 'Import-Module "posh-git";'