My powershell profile file and everything related to it ;-;
Last active
December 23, 2021 11:19
-
-
Save lenicyl/2b5d1bbc99d6af8a0b9bd2c04fb6942c to your computer and use it in GitHub Desktop.
Powershell $Profile
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
# Oh My Posh | |
Import-Module oh-my-posh | |
Import-Module posh-git | |
Set-PoshPrompt -Theme bubblesline | |
# Custom Alias for Notepad++ (npp) | |
Set-Alias npp notepad++ | |
#Get-Path command | |
Import-Module -Name Path | |
# TEST |
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
# Goes in `C:\Program Files\WindowsPowerShell\Modules\Path` | |
function Get-Path { | |
$path = pwd | |
Write-Host $path.Path | |
} | |
New-Alias Path Get-Path | |
Export-ModuleMember -Alias * -Function * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment