Skip to content

Instantly share code, notes, and snippets.

@willwm
Last active July 19, 2020 04:41
Show Gist options
  • Save willwm/33af6c3476d793613bc65e124a2e8f78 to your computer and use it in GitHub Desktop.
Save willwm/33af6c3476d793613bc65e124a2e8f78 to your computer and use it in GitHub Desktop.
User-level PowerShell profile, including aliases
# Helper function to include hidden items (like ls -la)
function Get-ChildItemForce
{
Get-ChildItem -Force
}
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-alias
Set-Alias -Name la -Value Get-ChildItemForce
Set-Alias -Name ll -Value Get-ChildItemForce
Set-Alias -Name which -Value Get-Command