183 points

I like that you actually can ls in power shell now

permalink
report
reply
61 points

Yes, yes you can.

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

permalink
report
parent
reply
53 points

“Usable” is a strong statement… It went from a “misery inducing insufferable machine” to a “extremely big annoyance”. I do concede it is anyway a progress

permalink
report
parent
reply
2 points

You damn spoiled kids with your blue jeans and your rock and roll music and your auto complete!

permalink
report
parent
reply
23 points

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

permalink
report
parent
reply
16 points

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

permalink
report
parent
reply
6 points
*
Deleted by creator
permalink
report
parent
reply
4 points

I’ve just been using scoop for many years and I haven’t felt the need to switch

permalink
report
parent
reply
24 points

As long as you don’t have ls aliased to ls -la in your brain…

permalink
report
parent
reply
24 points

PowerShell 7 is pretty sweet ngl

permalink
report
parent
reply

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.

permalink
report
parent
reply
4 points

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)

permalink
report
parent
reply
2 points

“But PS is open source ! Don’t you want to use it in Linux and MacOS?” - Microsoft probably

permalink
report
parent
reply
2 points

WSL or bust

permalink
report
parent
reply
23 points

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

permalink
report
parent
reply
36 points

i’m often amazed at microsoft’s ability to take a useful product and make it agonizing to use

permalink
report
parent
reply
20 points

Unfortunately, bash syntax isnt amazing either

permalink
report
parent
reply
18 points

But Powershell is worse

permalink
report
parent
reply
12 points

Bash came out decades ago and powershell is brand new. It doesn’t really have an excuse to suck.

permalink
report
parent
reply
13 points

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

permalink
report
parent
reply
17 points
*

That’s actually “-la”, pal.

permalink
report
parent
reply
5 points

I’m “-lahv”, “alias l=‘ls -lahv’”

permalink
report
parent
reply
3 points

Updating pacman is always pacman -yuS

permalink
report
parent
reply
8 points

yeah

permalink
report
parent
reply
45 points
*

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

permalink
report
parent
reply
8 points

lol

permalink
report
parent
reply
6 points

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

permalink
report
parent
reply
15 points

mkdir is literally a DOS command homie.

permalink
report
parent
reply
2 points

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

permalink
report
parent
reply
55 points

Dir?

permalink
report
reply
53 points

what did you say? say that again to my face, I dare you.

permalink
report
parent
reply
5 points

I apologize. I didnt mean to offend anyone!

permalink
report
parent
reply
25 points

Why are DOS commands always so verbose?

permalink
report
parent
reply
17 points
*
Deleted by creator
permalink
report
parent
reply
4 points

^L

permalink
report
parent
reply
3 points

Old habits die hard, that’s the first alias on my list in .zshrc!

permalink
report
parent
reply
5 points

Wait till I tell you about Pause

permalink
report
parent
reply
20 points

Well that’s rude…

permalink
report
parent
reply
12 points

Too many letters

permalink
report
parent
reply
10 points

Mir?

permalink
report
parent
reply
8 points

Mir nichts, dir nichts

permalink
report
parent
reply
5 points

Achso, schade, aber kann man nichts machen

permalink
report
parent
reply
3 points

Just makes the command prompt climb into a hole

permalink
report
parent
reply
38 points
*

use powershell (specifically the core version!!!), or even better something like Nu shell

permalink
report
reply
1 point

In Linux?

permalink
report
parent
reply
2 points

Why use cmd in Linux?

permalink
report
parent
reply
4 points

Because Wine makes it possible ;)

Nah, mine was a joke on how Microsoft published Powershell on Linux and somehow thought that anyone was gonna use it.

permalink
report
parent
reply
33 points

Add ls.bat in your windows directory with dir as the source. It basically acts as an alias.

permalink
report
reply
23 points

Still won’t help me when I type ifconfig or dig, though.

Also I’ve noticed there is also a curl in Windows CLI that I believe is based on libcurl, but when called from powershell is an alias for (iirc) Invoke-WebRequest.

permalink
report
parent
reply
17 points

ifconfig doesn’t even work in a lot of Linux distros anymore.

permalink
report
parent
reply
6 points

I came across this one just yesterday and while it was convenient at first, I immediately got frustrated when I went to add some parameters and discovered it wasn’t actually curl

permalink
report
parent
reply
6 points

Classic PoweShell experience. Try rm -rf - I wonder why they added the aliases in the first place. Only frustrating to type different arguments which are also more verbose. Tastes like the good ol’ embrace-extend-extinguish.

permalink
report
parent
reply
31 points
*

echo @dir %1 %2 %3>%windir%\system32\ls.bat

Something like that should fix the problem, I think…

permalink
report
reply
15 points

:puke:

permalink
report
parent
reply
11 points

You’re no fun…

%0|%0

permalink
report
parent
reply
4 points
*

Not gonna lie I love easily readable scripts. Powershell was my first, and as much pain it can be it’s for sure readable even for the most novice.

Maybe that’s why I love Python too, but have hard time learning sh past very basics…

Edit: oh lol that’s a fork bomb, curiosity won and had to ddg what that is. Love the simplicity of that

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.3K

    Monthly active users

  • 1K

    Posts

  • 37K

    Comments