Relocate powershell profile script

This commit is contained in:
Manuel Thalmann 2024-07-16 14:06:19 +02:00
parent 1f94745b94
commit 4c34db9d43
7 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
#!/bin/pwsh #!/bin/pwsh
. "$PSScriptRoot/../powershell/lib.ps1"; . "$PSScriptRoot/../../Software/powershell/profile.ps1";
Add-PowerShellProfileStatement ` Add-PowerShellProfileStatement `
-System ` -System `

View file

@ -1,5 +1,5 @@
#!/bin/pwsh #!/bin/pwsh
. "$PSScriptRoot/../powershell/lib.ps1"; . "$PSScriptRoot/../../Software/powershell/profile.ps1";
foreach ($defaultUser in @($true, $false)) { foreach ($defaultUser in @($true, $false)) {
Add-PowerShellProfileStatement -DefaultUser:$defaultUser -Statement "# aliae`naliae init pwsh | Invoke-Expression"; Add-PowerShellProfileStatement -DefaultUser:$defaultUser -Statement "# aliae`naliae init pwsh | Invoke-Expression";

View file

@ -1,5 +1,5 @@
#!/bin/pwsh #!/bin/pwsh
. "$PSScriptRoot/../powershell/lib.ps1"; . "$PSScriptRoot/../../Software/powershell/profile.ps1";
Add-PowerShellProfileStatement ` Add-PowerShellProfileStatement `
-System ` -System `

View file

@ -1,3 +1,3 @@
#!/bin/pwsh #!/bin/pwsh
. "$PSScriptRoot/../../../Common/Config/powershell/lib.ps1"; . "$PSScriptRoot/../../../Common/Software/powershell/profile.ps1";
Add-PowerShellProfileStatement -System -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/Software/powershell/profile.ps1";
Write-Host "Configuring posh-git"; Write-Host "Configuring posh-git";
Add-PowerShellProfileStatement -System -Category "posh-git" -Statement 'Import-Module "posh-git";' Add-PowerShellProfileStatement -System -Category "posh-git" -Statement 'Import-Module "posh-git";'

View file

@ -1,6 +1,6 @@
#!/bin/pwsh #!/bin/pwsh
. "$PSScriptRoot/Entrypoints.ps1"; . "$PSScriptRoot/Entrypoints.ps1";
. "$PSScriptRoot/../../Common/Config/powershell/lib.ps1"; . "$PSScriptRoot/../../Common/Software/powershell/profile.ps1";
class Context { class Context {
[string]$EntryPoint; [string]$EntryPoint;