News for hackers. Stuff that matters.
Re:It's not what programming languages do, it's what they sh... by dgellow on Friday March 27, 2020 @10:21AM (#22703024)
> Windows and Mac OS shepherd you into using GUIs for everything and trusting software by default.

Not sure how familiar you are with modern Windows, but you can try powershell. You can manage everything in Windows with it, and it’s a very cool shell language with a lot of feature.

(It’s also open source and multi platform)

Re:It's not what programming languages do, it's what they sh... by wtetzner on Friday March 27, 2020 @04:21PM (#22706462)
I agree with what you said, but I also agree that Windows shepherds you into using GUIs for everything. It's possible to use powershell, but Windows makes GUIs seem like the "natural" way to do things.
Re:It's not what programming languages do, it's what they sh... by zro on Friday March 27, 2020 @11:02AM (#22703359)
Do you have any good sources for places to start learining powershell? I'm pretty comfortable in bash, but powershell scares me.
Re:It's not what programming languages do, it's what they sh... by l0b0 on Friday March 27, 2020 @04:17PM (#22706423)
As someone who used PowerShell for a year and has used Bash for 10+, PowerShell is much less scary than Bash. The scariest thing about PowerShell is .NET, which (at least 8 years ago or so, so cue someone correcting that below) had extensive but often low quality documentation, with undocumented features you basically had to use to write useful code, uselessly trivial code examples (think "`0 + 0 == 0`" as an example of arithmetic) and some bad names. That's not to say Bash is better, just that they still had some way to go.
Re:It's not what programming languages do, it's what they sh... by dgellow on Saturday March 28, 2020 @01:06AM (#22709348)
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...