this post was submitted on 26 Aug 2023
1491 points (97.5% liked)

Programmer Humor

19512 readers
354 users here now

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

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] 01189998819991197253@infosec.pub 34 points 1 year ago (1 children)

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

[–] jasondj@ttrpg.network 23 points 1 year ago (2 children)

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.

[–] w2tpmf@lemmy.world 17 points 1 year ago

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

[–] jvisick@programming.dev 6 points 1 year ago (1 children)

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

[–] JustBrian7872@feddit.de 6 points 1 year ago (1 children)

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.

Fortunately splitting up the arguments works in Powershell sometimes: rm -r -f