Install Powershell profile statements globally

This commit is contained in:
Manuel Thalmann 2024-03-23 04:55:05 +01:00
parent 9ac113cbeb
commit 75d5b554fa
3 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,7 @@
. "$PSScriptRoot/../powershell/lib.ps1"; . "$PSScriptRoot/../powershell/lib.ps1";
Add-PowerShellProfileStatement ` Add-PowerShellProfileStatement `
-System `
-Category "oh-my-posh" ` -Category "oh-my-posh" `
-Statement $( -Statement $(
@( @(

View file

@ -1,3 +1,3 @@
#!/bin/pwsh #!/bin/pwsh
. "$PSScriptRoot/../../../Common/Config/powershell/lib.ps1"; . "$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";';

View file

@ -1,4 +1,4 @@
#!/bin/pwsh #!/bin/pwsh
. "$PSScriptRoot/../../../Common/Config/powershell/lib.ps1"; . "$PSScriptRoot/../../../Common/Config/powershell/lib.ps1";
Write-Host "Configuring posh-git"; 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";'