I'm not tring that on my machine. What does it does?
linuxmemes
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
- Don't get baited into back-and-forth insults. We are not animals.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudoin Windows. - No porn, no politics, no trolling or ragebaiting.
- Don't come looking for advice, this is not the right community.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. π¬π§ Language/ΡΠ·ΡΠΊ/Sprache
- This is primarily an English-speaking community. π¬π§π¦πΊπΊπΈ
- Comments written in other languages are allowed.
- The substance of a post should be comprehensible for people who only speak English.
- Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures
We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations. - Keep discussions polite and free of disparagement.
- We are never in possession of all of the facts. Defamatory comments will not be tolerated.
- Discussions that get too heated will be locked and offending comments removed. Β
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
Prints out what shell you're using. Bash is default for most Linux distros. MacOS switched from bash to zsh as their default. Zsh is hella customizable, by default it functions more or less like bash.
Fish is cool, has neat quality of life features out of the box, but can also break scripts sometimes.
Thank you. TIL.
Fish was kinda cool when I tried it, but I don't really care about the benefits that much. I love Zsh's effortless customization with Oh My Zsh and the POSIX compatibility.
Default zsh is just bash, you need to add all the fancy plugins to get it to do cool stuff
fish is for people who don't want to spend the time setting it all up and to just get a shell that has most of the QoL fetaures builtin.
Fish is for people who like it when sometimes scripts don't work
Why would sometimes scripts not work? All scripts are executed with bash by default.
I like to gamble what can i say
But I'm a compliant little bitch for POSIX daddy
I tried switching to Nushell but certain things just wouldn't work so I switched back to zsh. sha512sum wouldn't work and there's no native replacement.
So write all your scripts in POSIX compliant bash and use the proper shebang?
You don't even need a proper shebang. Scripts without shebang are executed in bash by fish.
I literally do not notice any difference. If the folders and such get the pretty colors and tab works, I could give a damn.
Me hitting tab on any shell that isn't fish
"What the hell was that I ran the other day?"
start typing, ctrl+right, up, up, up, up, up, up
"Gotcha, bastard!"
right, enter
π¦
zsh > bash
Brave stand, I will stand side by side with you until the first signs of mild resistance or mockery from the world!
Well guess what?
#include <string.h>
#include <iostream>
int main (int argc, char *argv[])
{
const int which = strcmp ("zsh", "bash");
std::cout << which << std::endl;
return 0;
}
Output
1
This is bait.
And I'm ready to fish
It's time for a nushell
Currently using zsh but I installed fish yesterday to try it out because I'm thinking of switching. All the zsh plugins I have are basically just replicating what fish has by default anyway and fish might do it better.
The other way around, fish was implemented with the most popular zsh plugins in mind.
Plus, look at your name!
I have never really ever used bash and thought, "Man, I wish my shell was better . . . ". Using ctrl+r to recall past commands, using sudo !! to fix missing permissions and writing small bash scripts all work very well.
That being said, if you use anything else, and you like it, I'm happy for you, but I do wonder, what leads people to other shells? What problems do they have with bash?
I script everything in bash, but for everyday use fish just has some modern QoL things that make it easier to get around. For me, specifically, it's the way you can recall commands by seeing a ghost version of your history, as you type. You can even scroll through a filtered history if you're part-way through typing some long command that matches what you have typed.
Another neat thing, it does it's best to predict what I want to type and remembers common locations, showing them as ghost text as well.
alias fuck='sudo !!' is probably the best thing I've ever added to my profile
Oh yay, more tribalism.
I am a pureblood and do all the computing I need in my head.
Am I out of the loop? what's wrong with zsh?
Classic linux tribalism. Use what you like and don't get involved with these confrontational nerds.
RMS doesnβt approve
They asked what's wrong
Usually I just use bash it's definitely good enough. I've tried zsh and fish, I definitely prefer fish
I never tried anything other than bash tbh. Not sure if i should. I never really looked into what i might be missing out on with a different shell. Bash just works so i never felt like messing around with it.
fish is worth trying. saves alot of typing