top | item 31769362

(no title)

garlicrouted | 3 years ago

If I'm not a "power user" (learned rudimentary bash as teenager, stuck with it on MacOS through college) is it worth it to learn a new shell?

I respect the craftmanship, but if I'm more of a "software carpenter" why should I invest the time?

discuss

order

lachenmayer|3 years ago

I always recommend fish to anyone who doesn't (yet!) have strong opinions about their shell.

Immediately seeing if you misspelled a command because the color changes is a huge benefit if you're not super familiar with the command line.

The auto-complete and suggestions are also miles better than bash - they are automatically generated from man pages, so most commands have a usable set of completions.

The web-based config lets you easily tweak settings that would otherwise be an incomprehensible soup of PS1=3!@*(!@!@ gobbledygook.

Also, it mostly "just works" out of the box, so you really don't have to waste any time setting anything up if you don't really care.

garlicrouted|3 years ago

Sounds promisingm, especially now that macOS defaults to Zsh... I very rarely see any documentation where that is the default.

jeppesen-io|3 years ago

> The auto-complete and suggestions are also miles better than bash - they are automatically generated from man pages, so most commands have a usable set of completions.

I never understood this. It's always seemed worse - in bash/zsh I can tab complete branches/tags etc in git, pods/deployments etc in kubectl. I try that in fish and it'll just list files in my PWD

jefft255|3 years ago

For me, fish made my life instantly better without any real investment coming from bash. There are some incompatibilities, but I felt productive right away.

pxc|3 years ago

Yes, it's worth it! Fish is especially great for users who have found learning bash troublesome or uninviting. It's simpler and easier to learn, and plus it has very pleasant defaults and builtins. If you get started with Fish, you're much more likely to learn advanced functionality because the journey is more enjoyable than with bash.

robonerd|3 years ago

I used zsh for years with a moderately elaborate configuration that grew into a pain in the ass to manage. I started using fish a few months ago with no configuration of my own. I'm still not sure if I'll stick with it in the long run, but if nothing else it's a welcome reprieve.

k8sToGo|3 years ago

Fish to me is like writing a document in Word. Bash is more like writing it in Notepad. (or whatever Linux equivalent you want to use)

Though I still write my scripts as bash scripts (with shebang as the first line).

glmdev|3 years ago

The auto-completion alone is worth it IMO. I've been using fish for 6 or 7 years now, and having it hint ahead some obscure command that I only use once a month saves me so much time reading MAN/searching online.

Pair that with tldr and it's a really good experience.