I like that you actually can ls in power shell now
Yes, yes you can.
Also, WSL and windows terminal go a very long way in making windows actually usable…
“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
Just add Winget with an UI to have a proper package manager and we’re in
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.
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)
“But PS is open source ! Don’t you want to use it in Linux and MacOS?” - Microsoft probably
Yeah but tbh i really despise powershells syntax. But i’m happy it is pretty powerful.
Bash came out decades ago and powershell is brand new. It doesn’t really have an excuse to suck.
Isn’t it md
and mkdir
is just an alias in Powershell to accommodate Linux users?
Dir?
use powershell (specifically the core version!!!), or even better something like Nu shell
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.
Add ls.bat in your windows directory with dir as the source. It basically acts as an alias.
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
.
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
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.
echo @dir %1 %2 %3>%windir%\system32\ls.bat
Something like that should fix the problem, I think…
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