July 2005 - Posts

Making "programmerlike" MSH aliases
One of the beta testers in the MSH groups recently mentioned that the verb-noun form for MSH aliases looks rather alien to programmers; it just doesn't feel right using new-object instead of New-Object, for example. Those of us who have been in the beta for a while are very used to the concept of aliasing for familiarity. This is an easy one to reskin: MSH> get-command | foreach-object { set-alias $($_.Verb + $_.Noun) $_.Name} And suddenly every MSH cmdlet has a "standard" name without the hyphenation.