you are viewing a single comment's thread
view the rest of the comments
[–] 15 points 2 months ago (13 children)

Is there anyone that can help answer this? Why use Fish over say ZSH?

I'm a ZSH user, and every system I install one of the first tasks I always do is install ZSH and oh-my-zsh and make ZSH my default shell. However, if you were to ask me why ZSH over Bash, I honestly couldn't give you a good answer outside of "oh-my-zsh themes look pretty"

  • source
  • hideshow 13 child comments
  • [–] 18 points 2 months ago* (last edited 2 months ago) (6 children)

    Fish is setup out of the box while ZSH is minimal OOTB and can be extended with all sorts of themes, plugins, etc. They both offer syntax highlighting, tab completion, fuzzy search, as well as many other QoL features over bash. The main upside of ZSH is that it's compatible with the same POSIX scripts bash supports, while fish uses their own scripting thing (that can be easier to read and simpler, yes, but you lose compatibility with a lot of existing scripts!)

    In my opinion, I would say fish and ZSH are awesome for most people, while ZSH has the edge when if you use a lot of scripts, and fish is better if you don't want to configure anything (though oh-my-zsh, which is very simple to install, puts ZSH nearly on par with stock fish)

    I am moving to Piefed at scallisto@retrofed.com (https://retrofed.com/u/scallisto)

  • source
  • parent
  • hideshow 6 child comments
  • [–] 9 points 2 months ago (3 children)

    Doesn't the shebang at the top of a bash script negate that compatibility issue anyway?

    I remember years ago a YouTuber (I think it was Distrotube) making that same point about Fish, and I had this same thought back then lol.

    Although, the Fish scripting looks interesting. Might switch my default shell to Fish on my laptop for a bit, maybe I'm underestimating this lol

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 2 months ago*

    Doesn’t the shebang at the top of a bash script negate that compatibility issue anyway?

    Yes. Fish is equal to ZSH when running scripts. But has more trouble if you are writing scripts you want other people to run (this is quite rare these days though, maybe just use a proper programming language if you want to write/share software).

    Fish is worth trying out! I have used both fish and ZSH both for around a year. Fish is a better experience overall. You don't have to maintain a bunch of config files for the same level of features and it is generally faster.

  • source
  • parent
  • load more comments (2 replies)
  • load more comments (4 replies)
  • load more comments (10 replies)