-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(powershell, pwsh): Introducing unified pwsh and powershell profile
I moved all of the previous configuration into the windows powershell profile, because of backwards compatibility. The cross-platform powershell now loads first the windows powershell profile, and after that it loads its specific profile.
- Loading branch information
Botond Kalocsai
committed
Apr 22, 2024
1 parent
3d78a95
commit 0dea6ce
Showing
9 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 11 additions & 5 deletions
16
home/Documents/PowerShell/Microsoft.PowerShell_profile.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
$ProfileLocation = Split-Path -Path $Profile.CurrentUserCurrentHost -Parent | ||
# Loading Windows PowerShell profile | ||
$WindowsPowershellProfile = ( | ||
powershell -NoProfile -Command { | ||
Write-OutPut -InputObject $($Profile.CurrentUserCurrentHost) | ||
} | ||
) | ||
.$WindowsPowershellProfile | ||
|
||
."$ProfileLocation\Variables.ps1" | ||
."$ProfileLocation\Initialisations.ps1" | ||
."$ProfileLocation\Functions.ps1" | ||
."$ProfileLocation\Aliases.ps1" | ||
# Loading Cross Platform powershell specific profile | ||
$PwshProfileLocation = ( | ||
Split-Path -Path $Profile.CurrentUserCurrentHost -Parent | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
home/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$WindowsPowershellProfileLocation = ( | ||
Split-Path -Path $Profile.CurrentUserCurrentHost -Parent | ||
) | ||
|
||
."$WindowsPowershellProfileLocation\Variables.ps1" | ||
."$WindowsPowershellProfileLocation\Initialisations.ps1" | ||
."$WindowsPowershellProfileLocation\Functions.ps1" | ||
."$WindowsPowershellProfileLocation\Aliases.ps1" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters