Skip to content

Instantly share code, notes, and snippets.

@zlalanne
Last active December 31, 2015 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zlalanne/8046921 to your computer and use it in GitHub Desktop.
Save zlalanne/8046921 to your computer and use it in GitHub Desktop.
Equivalent unix which for powershell
foreach($arg in $args)
{
Get-Command $arg | Select-Object -ExpandProperty Definition
}
@zlalanne
Copy link
Author

which

Very basic "which" for PowerShell. Does not support any command line flags

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