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
Package manager with a UI? I like my apt and dnf thank you very much.
You can still use winget by itself from the command line! The UI is just there for convenience and automation
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.
Winget-UI specifically can run the upgrade tool automatically for you, that’s what I meant for “automation”. You could also add a scheduler to run Winget by itself every day if you need to.
I use pacman btw
deleted by creator
I’ve just been using scoop for many years and I haven’t felt the need to switch
As long as you don’t have
ls
aliased tols -la
in your brain…Yeah but tbh i really despise powershells syntax. But i’m happy it is pretty powerful.
i’m often amazed at microsoft’s ability to take a useful product and make it agonizing to use
Unfortunately, bash syntax isnt amazing either
But Powershell is worse
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.
Fish? I like fish.
Can anyone name any living language, scripting or otherwise, without arcane syntax?
PowerShell 7 is pretty sweet ngl
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
It’s a wonderful tool for me in a Windows environment/shop, especially with how it works well with all the Windows and Microsoft administration systems/tools we use.
Personally, I’m less interested in any language’s hypothetical merits than how it fits as a tool for what I need to accomplish and ease of future maintenance when the script/program/automation inevitably needs to be adjusted.
All that said, I can’t think of a legitimate reason to use PSCore on non-Windows hardware unless you’re just really familiar with PS and literally nothing else. Even then you’re better off taking time learning a better tool for that environment.
That’s a very good point. My angle is as a dev and not as IT or sys admin. Power shell is probably far more powerful in those circles.
WSL or bust
If you can suppress 30 years of " -al" from following his buddy.
That’s actually “-la”, pal.
I’m “-lahv”, “alias l=‘ls -lahv’”
Updating pacman is always
pacman -yuS
yuS, it is!
yeah
I’m so sorry but this is how I pictured your response lmao
Oh man, it comes full circle
lol
Also rm, cat, mkdir, cd, curl, what else
mkdir is literally a DOS command homie.
Fair enough 👍
Isn’t it
md
andmkdir
is just an alias in Powershell to accommodate Linux users?Every command that isn’t fully expanded PowerShell commands is an alias.
dir
andls
are both aliases forGet-ChildItem
.Yeah posh has lot of aliases by default to make it more “friendly”. mkdir is just new-item -type directory or whatever.
Also curl is just alias for invoke-webrequest and works nothing like curl
MD and MKDIR are ancient DOS commands.
I didn’t actually know this, thanks for pointing out
Dir?
what did you say? say that again to my face, I dare you.
I apologize. I didnt mean to offend anyone!
Why are DOS commands always so verbose?
Well that’s rude…
Mir?
Mir nichts, dir nichts
Achso, schade, aber kann man nichts machen
Tja
Just makes the command prompt climb into a hole
use powershell (specifically the core version!!!), or even better something like Nu shell
In Linux?
Why use cmd in Linux?
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
ordig
, 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
.ifconfig doesn’t even work in a lot of Linux distros anymore.
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.Fortunately splitting up the arguments works in Powershell sometimes:
rm -r -f
echo @dir %1 %2 %3>%windir%\system32\ls.bat
Something like that should fix the problem, I think…
:puke:
You’re no fun…
%0|%0
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
Haha!
Old-school fork bomb, at least it doesn’t do anything but bog the system down…
Cmd? What century is this? Use powershell
I’m gonna take it a step further and say to use the new Terminal app from the winapp store which lets you integrate ALL command lines into one app and it looks snazzy to boot!
Check it out mother fuckers!
Yes I love it. It’s on w11 by default
I hate it, it takes too long to start up.
Maybe something is wrong with your pc. It takes me about 5 seconds. Or you are just very impatient.
5 seconds is way too long when all I need to do is run small utility in batch.
Agreed. Terminal is the shite. Makes working in WSL Ubuntu really rewarding.
I’ve found that powershell doesn’t play nice with many command line developer tools so cmd it is.
My brain is still hardwired to do Win+R CMD Enter…
You can just press Win key and type whatever to search and enter to open. WIN Term Enter, and there’s your Windows Terminal.
My brain is hardwired to win+X -> A lol
Takes way too long to open, have weird issues all the time
Thank Microsoft for PowerShell
It’ll always be “Bad command or file name” to me.
Yes but it can do “cd…”
God everytime!
sfc/scannow
Memories we all share.
https://duckduckgo.com/?q=gnu+utils+for+windows&t=fpas&ia=web
That’s what I used, back when I still had MS-Windows installed…
feels good to say “it’s been years”, tho…
( :
_ /\ _
But what about Linux subsystem for windows tho
I think you mean the Windows Linux for Subsystem
Those words in that order!