Skip to content

Instantly share code, notes, and snippets.

@lenicyl
Last active December 23, 2021 11:19
Show Gist options
  • Save lenicyl/2b5d1bbc99d6af8a0b9bd2c04fb6942c to your computer and use it in GitHub Desktop.
Save lenicyl/2b5d1bbc99d6af8a0b9bd2c04fb6942c to your computer and use it in GitHub Desktop.
Powershell $Profile

My powershell profile file and everything related to it ;-;

# 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
# 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