Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Microsoft online documentation is very good. I initially spent just a weekend trying to create a nice prompt, just because I was annoyed by the ugly “PS >” when using Windows. The online documentation had everything I needed, and I enjoyed so much that I switched all my systems to using powershell as their default shell.

You can start at https://docs.microsoft.com/en-us/powershell/scripting/learn/....

A quite nice feature is the command Get-Help:

Get-Help <a command> -Online

That will direct you to the documentation page specific to a command. That way you can discover the environment little by little by experimenting.

Also, the auto completion for all commands and their arguments is helpful to learn what is possible.

Also, if you want to keep your bash habits, be sure to install powershell 7, and enable the emacs edit mode (which is similar to bash defaults, with C-a, C-e, etc):

Set-PSReadlineOption -EditMode Emacs

https://docs.microsoft.com/en-us/powershell/module/psreadlin...



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

Search: