How can I write a PowerShell alias with arguments in the middle?
You want to use a function, not an alias, as Roman mentioned. Something like this: function mybuild { g++ $args -lib1 -lib2 … } To try this out, here’s a simple example: PS> function docmd { cmd /c $args there } PS> docmd echo hello hello there PS> You might also want to put this … Read more