Skip to content

Instantly share code, notes, and snippets.

@mishrsud
Created July 12, 2017 07:24
Show Gist options
  • Save mishrsud/45c4faab25a836cdf34a2f9271e2ff47 to your computer and use it in GitHub Desktop.
Save mishrsud/45c4faab25a836cdf34a2f9271e2ff47 to your computer and use it in GitHub Desktop.

Summary

Makes a PowerShell alias for a command with parameters

Code

Function Git-Status { git status }
New-Alias -Force st Git-Status

Next Steps

Import this in profile so that its available to all sessions

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