Skip to content

Instantly share code, notes, and snippets.

@kyle-seongwoo-jun
Last active December 6, 2019 01:56
Show Gist options
  • Save kyle-seongwoo-jun/c76995a18e0c843d12fcad18635c2081 to your computer and use it in GitHub Desktop.
Save kyle-seongwoo-jun/c76995a18e0c843d12fcad18635c2081 to your computer and use it in GitHub Desktop.
My PowerShell $PROFILE file
# Ctrl+D to exit
Set-PSReadlineKeyHandler -Chord Ctrl+d -Function DeleteCharOrExit
# alias which command
function which($name)
{
Get-Command $name | Select-Object -ExpandProperty Definition
}
@kyle-seongwoo-jun
Copy link
Author

> echo $PROFILE
C:\Users\Nuwanda\OneDrive\Documents\PowerShell\Microsoft.PowerShell_profile.ps1

You should create the $PROFILE directory and file manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment