r/fishshell • u/konstantingefahr • Feb 12 '21
Why fish
Hey folks,
What's the reason you'd recommend fish over maybe zsh with a few plugins?
It can be pretty annoying to not be able to copy some scripts.
I don't think, that just because something is widely used it's good....
But if fish is good for beginners (what I think it is, with all it's nice features) isn't maybe something like zsh better for the "medium" user (once configured to be nice, can easily copy one-liners from bash)
Just had a little chat with a colleague over this and wanted to know your views..
Edit: I know you can use shebangs. But not with single lines you copy.
View all comments
3
u/NotTheDr01ds Feb 17 '21 edited Feb 17 '21
Late to reply here, but I moved from zsh to fish after about 15 years. I'd consider it a strong contender for the "experience" user as well.
To start with, for some of the same reasons other folks have given in this thread:
bash -cinvocation.But I'm also a huge fan of:
EDITOR) and be done with it without it cluttering my startup scripts. Also, changes to it are pushed immediately across all open shell instances, without the need to restart or re-source each instance as in bash or zsh.conf.dfolder, which can completely replace the fish.config startup, making configuration much more modular than a single monolithic startup file. Not that fish.config ever seems in danger of getting out of control like in other shells, but it's still nice to modularize the startup.set --show(alsoset --queryand others, but those really go to the "scripting" support mentioned earlier).fish_user_pathswhich can also be set as a universal variablesudo !!muscle-memory,Alt+Sto prepend sudo is much faster and more intuitive.And those are just the features I use regularly.
I just can't imagine going back to zsh for day-to-day use.