Hacker News new | past | comments | ask | show | jobs | submit login

Tab completion to the rescue! Once you're a few letters past the dash in Powershell, you can just hot the tab key until you've cycled through the few commands it spells. Same for parameters.



Doesn't help that a lot of commands have the same prefix 'Get-' / 'Set-', 'Add-', etc, so you have to type at least 6 characters, including a '-', to get useful completion.


Powershell has aliases, so you can use 'ls' instead of 'Get-ChildItem'. My colleagues tend to use Get-ChildItem in scripts and ls when typing at the command prompt.

Personally, I prefer 'ls' for scripts too. I would never use "rd" for a variable name, but since I speak Unix, the more concise 'ls' seems better. To my colleagues without a Unix background, Get-ChildItem, probably is a better choice.


These are the approved verbs. Powershell function names have to be in "verb-noun" format, forcing a level of standardization on the language. It seems like an odd idea to me.

https://msdn.microsoft.com/en-us/library/ms714428(v=vs.85).a...




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: