Last active
December 31, 2015 21:29
-
-
Save zlalanne/8046921 to your computer and use it in GitHub Desktop.
Equivalent unix which for powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach($arg in $args) | |
{ | |
Get-Command $arg | Select-Object -ExpandProperty Definition | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
which
Very basic "which" for PowerShell. Does not support any command line flags