this post was submitted on 13 Dec 2023
64 points (84.8% liked)

Linux

48035 readers
1058 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
all 44 comments
sorted by: hot top controversial new old
[–] [email protected] 34 points 11 months ago (2 children)

Boring is good. I don't want to be surprised by the software I use.

[–] [email protected] 15 points 11 months ago

Zsh is a nice balance of modern features and backwards compatibility with bash.

[–] cybersandwich 3 points 11 months ago (2 children)

I switched to zsh (with ohmyzsh) a couple years ago on my Mac and I have to say while it's fairly stable, it gets hung up on itself and does weird shit from time to time.

I think bash has wigged out on me once in the past 20 years (that wasn't obviously something I've done).

[–] AnarchistArtificer 3 points 11 months ago

The first time I used zsh, I was an overenthusiastic Linux noob and got too customisation happy, and I clogged it up. I used bash for a while to ground myself. It's good to have experience with the thing that's standard.

[–] [email protected] -2 points 11 months ago

Cool story bro

[–] [email protected] 26 points 11 months ago (7 children)

The article just describes the how, but gives no reasons for a why.

So, why would anyone move away from the de-facto standard bash, except for some rare circumstances like having a small system and using busybox?

[–] [email protected] 16 points 11 months ago (1 children)

You probably never used fish shell.

[–] TheGrandNagus 34 points 11 months ago (4 children)

Yeah, and I suspect most reading the article haven't either, so the above guy's question stands - what's wrong with Bash in comparison to the others?

[–] [email protected] 4 points 11 months ago

Nothing wrong with it, it's just boring. Fish shell has some new features that make it nice to use. So does zsh. Tab completions, history navigation, plugins and such.

[–] [email protected] 4 points 11 months ago (1 children)

I don't use anything other than BASH, but I hear that ZSH has command tab-completion (not just directory tab-autocomplete) similar to PowerShell and also some other cool shit I'm not really bothered to check out since bash is the GOAT.

[–] fhein 1 points 10 months ago

Bash has that too, but perhaps zsh comes with more commands pre-configured.. https://www.gnu.org/software/gnuastro/manual/html_node/Bash-TAB-completion-tutorial.html

The only thing I use in zsh which I think bash lacks is async writing to rprompt

[–] [email protected] 1 points 11 months ago

https://fishshell.com/ should the author include that link in his article?

[–] [email protected] 1 points 11 months ago (1 children)

Why does something have to be wrong with Bash for Fish to be better?

[–] TheGrandNagus 3 points 11 months ago (1 children)

I asked why others are better, I never called Bash shit.

It stands to reason that if people want to switch to something else, then they must have advantages over Bash.

[–] [email protected] 1 points 11 months ago

what's wrong with Bash in comparison to the others?

The others have plenty of QoL features like auto-complete, spelling correction, syntax highlighting, etc.

Doesn't mean there's anything "wrong" with Bash by comparison.

[–] MimicJar 7 points 11 months ago

I agree that the article lacks the why, but choice is a huge part of Linux. Why Debian and not Fedora? Why KDE and not GNOME? Why Vim and not Emacs?

Each provides something similar, but each is different.

Bash is a great default. I like Bash. However I think ZSH provides better tab completion. The fish shell provides command highlighting.

It's worth trying others to see what works for you.

[–] [email protected] 1 points 11 months ago

Fish is actually user friendly and easy to learn. The interactive completions are better than any other shell and are something I don't want to live without.

It differs from bash in some esoteric ways, but any issues you might encounter as a result are easily worked around by putting shebangs in your scrips, which you should be doing anyway, and bash -c 'your command'.

Honorable mention for nushell, but that one differs from bash a little too much to pick up quickly. However, having an object-oriented shell is pretty sick.

[–] [email protected] 1 points 11 months ago

Because you're bored. It says so right in the title.

Personally I don't see the point of changing the shell either. Bash is more than good enough for my use and any other shell is going to have the disadvantage of not being the ubiquitous standard so it is always going to have an uphill battle to dislodge bash.

That said, if people want to play around with a new shell just for the sake of it, why not? I like to play around with exotic window managers myself, not because my regular plasma desktop doesn't suffice, but because I like to try something different every now and then.

[–] GustavoM 0 points 11 months ago (1 children)

To learn something new. Which can be boring and frustrating (depending of how "new" the thing is) but it will be (always) fun in the end.

Why? Because you learned something new.

"Oh, but learning new things is boring!"

Then it's time to (re)evaluate your life choices.

[–] [email protected] 2 points 11 months ago

Why? Because you learned something new.

Well, at the moment I have to learn new things on every front, so adding "learning a new shell" is not high on my priority list.

[–] Quazatron 0 points 11 months ago

We do what we must because we can.

[–] cholesterol 0 points 11 months ago

It's in the title: 'Boredom'.

It's just for the of trying something new, which describes a lot of Linux users.

[–] marx2k 21 points 11 months ago
[–] [email protected] 19 points 11 months ago (2 children)

Bored with driving your car with a wheel and pedals? Change the default handling device in your vehicle

[–] extant 3 points 11 months ago (1 children)

How do I put it into mech mode?

[–] [email protected] 1 points 11 months ago (1 children)

That sounds like a way more transformative change than simply changing the handling device sir, motivated by an urge to look cool to outsiders over any practicality

you want to go from linux to mac basically

[–] extant 2 points 11 months ago* (last edited 11 months ago)

It just needs some minor compatibility upgrades like a nuclear reactor and a sword or something. You can probably find that at your nearest Walmart at any time in the year 3000 onwards.

[–] WalrusByte 2 points 11 months ago (1 children)

Yeah, how do I change it to a PS2 controller?

[–] [email protected] 2 points 11 months ago (1 children)

i will need to confirm that you don't intend to take your vehicle underwater

[–] WalrusByte 2 points 11 months ago

Not too deep underwater. Unrelated question: how deep is the Titanic wreckage?

[–] [email protected] 9 points 11 months ago (1 children)

tip: don't install fish or whatever, change your default shell, THEN uninstall fish because you don't like it.

Change your default shell back first.

I have seen way too many support posts where people paint their self I to a corner doing that.

or just don't change the default shell.

run fish as needed, then exit back to bash when done.

I have

[–] semperverus 0 points 10 months ago

Add it to your .bashrc so it autolaunches, but fails back to bash.

[–] _Atlas_ 9 points 11 months ago* (last edited 11 months ago) (1 children)

Honestly I prefer https://ohmyposh.dev it's damn nice. Not that it's a different shell, but makes any shell look nice

[–] fhein 7 points 11 months ago* (last edited 11 months ago)

It looks pretty, but IMO one of the selling points of zsh is that it allows async updating of the prompt, allowing you to use slow commands like "git status" without adding a delay every time the prompt needs to be printed.

E.g. the default prompt from prezto is quite light and responsive, but when inside a git repo adds the info on the right side (shows when you have commits ahead/behind the remote branch, stashes, modified/deleted/added/staged files, etc) when that becomes available.

Image

Didn't look like any of the example themes on ohmyposh.dev had the $RPROMPT stuff, which I guess would be difficult support for a cross-shell theming engine.

[–] [email protected] 4 points 11 months ago (1 children)

Nice. But I want to change the default terminal in gnome but gnome-files doesn't respect my choice. ...

[–] [email protected] 7 points 11 months ago

This might be right up your alley.

[–] [email protected] 2 points 11 months ago (1 children)
[–] Neon 7 points 11 months ago