hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.1K
active users

I love keeping an open mind about stuff. I've had the opportunity in the last week to work on improving bootstrapping for people on windows dev machines.

It turns out, uh, powershell is actually pretty cool?

(This, of course, will come to zero surprise to both @shanselman and Hillel, who's powershell shenanigans have never failed to keep me interested in the language, despite not having an opportunity to use it for many years)

@hazelweakly @shanselman
I have not scripted with PowerShell yet, but the feeling I have is that the PS terminal is basically Bash, minus a few commands here and there. 😄

Brian Campbell

@badnetmask @hazelweakly @shanselman It's really quite different than bash; unfortunately they add a few command aliases that match Bash and common Unix commands which can make you think that, but the language is quite different and you get frustrated easily if you think of it just as a variant of Bash.

Better to actually learn it as powershell, and I wish they would drop some of the aliases (especially "curl" which behaves nothing like the real curl).

@unlambda @badnetmask @shanselman I totally get that.

Part of me is thankful that I can do 'ls' and 'cd' by default so that I can at least *use* a powershell terminal until I figure out how it actually works

But, honestly, the more I use it, the more annoying it is to have to think about what version a command is. Is it...

the linux one?
the powershell alias?
the linux-cli-rewritten-for-windows version?
or the linux-compatibility-shim-exposed-via-msys2-shenanigans version?
or...?

@unlambda
I did not say "it's like Bash", I said "it *feels* like Bash.

As @hazelweakly said, there are some commands, others are similar, tab completion and ctrl+r work. That's what I mean about "feels like".

@hazelweakly @badnetmask @shanselman Yeah, I am frequently thankful for the aliases, so I don't need to remember the powershell commands (which tend to have much more verbose names), but then it bites me when I expect them to work like the bash/common Unix commands and it doesn't.

And yeah, having some commands available via msys because they were installed with Git for Windows or the like muddies the water further still.