you are viewing a single comment's thread
view the rest of the comments
[–] 186 points 2 years ago (7 children)

I like that you actually can ls in power shell now

  • source
  • hideshow 14 child comments
  • [–] 61 points 2 years ago (2 children)

    Yes, yes you can.

    Also, WSL and windows terminal go a very long way in making windows actually usable...

  • source
  • parent
  • hideshow 4 child comments
  • [–] 23 points 2 years ago (3 children)

    Just add Winget with an UI to have a proper package manager and we're in

  • source
  • parent
  • hideshow 6 child comments
  • [–] 16 points 2 years ago (2 children)

    Package manager with a UI? I like my apt and dnf thank you very much.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 7 points 2 years ago (1 child)

    You can still use winget by itself from the command line! The UI is just there for convenience and automation

  • source
  • parent
  • hideshow 2 child comments
  • [–] 12 points 2 years ago (1 child)

    The UI is just there for ... automation

    Wut?

    I've never gone to a UI when I want to automate something, a sane CLI is much more predictable and consistent.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 24 points 2 years ago (2 children)

    PowerShell 7 is pretty sweet ngl

  • source
  • parent
  • hideshow 4 child comments
  • [–] 6 points 2 years ago (2 children)

    I really want to love the "everything is an object" of power shell but I just have zero uses for using a shell on windows. Granted, my windows usage is like 15 minutes a week most of the time, but still. I also can't be bothered to use it for work because it's exclusively Linux/linux-ish over there so it's not worth bothering.

    Either way, I like the idea, can't really justify figuring out the details.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 4 points 2 years ago

    If you only have to use it 15 minutes every week it's probably not worth getting to know.

    I work in a Windows shop, so I love everything being an object, most of the time. At least for the things that are worked out completely.

    It's great for things you need to iterate or just for figuring out what you can do by piping a result to get-member. If you are interested in getting better at powershell at some point, I highly recommend Powershell in a month of lunches. (Also because I like Manning's model where they automatically offer the digital versions of books they sell, and also offering free previews of the entire book, given enough time)

  • source
  • parent
  • [–] 23 points 2 years ago (2 children)

    Yeah but tbh i really despise powershells syntax. But i'm happy it is pretty powerful.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 20 points 2 years ago (2 children)

    Unfortunately, bash syntax isnt amazing either

  • source
  • parent
  • hideshow 4 child comments
  • [–] 18 points 2 years ago (1 child)
  • [–] 6 points 2 years ago (2 children)

    Yeah. I've said this before and got grilled for it but I wish there was a shell scripting language that doesn't have arcane syntax.

  • source
  • parent
  • hideshow 4 child comments
  • [+] 12 points 2 years ago* (last edited 2 years ago) (1 child)
  • [–] 6 points 2 years ago (1 child)

    I hope I didn't come across as defending ps. PS sucks and whoever decided to have functions use capital case with dashes in between needs to have their brain scanned

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago* (1 child)

    I do a lot of work in PS and I don't find it that bad. But you forgot what's even dumber about their function naming conventions.

    Function names are supposed to be a single word verb, then the dash, then the rest. But not any verb, you're supposed to use one from PS's list of acceptable ones which has some really weird omissions. And they break their own single word verb convention with "acceptable verbs" ConvertTo and ConvertFrom (ConvertTo-SecureString, ConvertFrom-Json), which are the only exception to one word verbs before the dash.

    Function names are definitely one of my biggest peeves with it.

    Additionally, their basic comparison operators are dumb as hell. How is "-le" better or clearer in meaning that "<="? -ne instead of !=, but == isn't just -e, it's -eq. And you can't slap an n in front of other comparators for not, -nle isn't a thing. You gotta wrap the whole comparison in parentheses and slap an ! on the front or slap -not in front. But don't try to do !-le, because that's also not a thing. It's not terrible but I refuse to believe that -eq is more readable than ==

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 years ago

    Functionally speaking, PS is a really good shell language. Its minor things about it that I dont enjoy. As you said, it feels like the language design has some poor decisions.

  • source
  • parent
  • [–] 13 points 2 years ago (1 child)

    If you can suppress 30 years of " -al" from following his buddy.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 18 points 2 years ago* (2 children)
  • [–] 8 points 2 years ago (1 child)
  • [–] 45 points 2 years ago* (2 children)

    I'm so sorry but this is how I pictured your response lmao

    Image

  • source
  • parent
  • hideshow 4 child comments
  • [–] 6 points 2 years ago (1 child)

    Also rm, cat, mkdir, cd, curl, what else

  • source
  • parent
  • hideshow 2 child comments
  • [–] 15 points 2 years ago (2 children)

    mkdir is literally a DOS command homie.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 2 years ago (3 children)

    Isn't it md and mkdir is just an alias in Powershell to accommodate Linux users?

  • source
  • parent
  • hideshow 6 child comments