Install Powershell profile statements globally

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

View file

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

View file

@ -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";';

View file

@ -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";'