Given my research, I do not think the following is easy to do, if at all. As a last resort, however, I decided that I would check here.
In Powershell 2.0, I would like to reduce (annoyingly) long parameter names for different cmdlets. I would like absolute control over the shortened version. (Unlike being subordinate to any abbreviation abbreviation scheme used by PS).
So, for example, I would like to do something like this:
# Command goes on this first line to alias "-ForegroundColor" to "-fg" # Command goes on this second line to alias "-BackgroundColor" to "-bg" Wr-te-Host -fg yellow -bg black "Parameter aliases now work just like I want."
The closer I can get to this functionality and how? I could not find anything about the parameter abbreviation using "get-help about_parameters".
Thanks!
source share