this post was submitted on 18 Jul 2024
267 points (98.5% liked)

Programmer Humor

19821 readers
793 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
267
Which one??? (programming.dev)
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
 

Fuck it, .zshrc it is.

Image transcription:

  • Top text: I STILL DON'T KNOW WHAT SHOULD GO IN .*RC VERSUS .*PROFILE
  • Bottom text: AND AT THIS POINT I'M AFRAID TO ASK
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 30 points 5 months ago (4 children)

Switching to Fish was the best decision I ever made in my terminal. Besides using tmux.

[–] [email protected] 8 points 5 months ago* (last edited 5 months ago) (1 children)

Yeah. Fish just simplifies life everywhere. No longer do I need to care about those silly files or other configurations for basic stuff like search history.

Best decision ever.

[–] prettybunnys 8 points 5 months ago (1 children)

The only thing I miss in fish is $?

I know $status exists but my fingers don’t.

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

Could you make an alias for it?

[–] [email protected] 8 points 5 months ago (2 children)

Isn't the POSIX incompatibility a major roadblock when scripting?

[–] [email protected] 16 points 5 months ago

Not really, you can make .fish scripts or call "bash script.sh" when it's more appropriate to be posix compliant

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

Not really. I hate writing bash scripts anyway so I usually script whatever I need in Ruby which is far better at scripting than any posix script ever will be, and even when I do need to run a bash script I still can or just shell down into bash or zsh if I really really need to. But that’s like once a year.

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

Alright stranger, let’s hear it. What is it about Fish that you love so much?

I’ve been generally happy with bash or zsh, pretty much whatever is installed by default (and I honestly don’t know the difference between the two I just mentioned 😬).

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

Once upon a time I was the person that was constantly messing with my shell. I would performance tune it, try out new plugins weekly, change my config often. It honestly became a huge waste of time. Since switching to fish I literally haven’t spent any time configuring it at all, besides adding in the fzf plugin and the fzf-marks plugin. It just works. And it has all of the same features that everyone adds to zsh with plugins straight out of the box.

If you’re happy with the default in bash or zsh then you will be even more happy with the default in fish, as it’s just much much more user friendly (which is why so many people add so many plugins to bash and zsh: to make it more user friendly). You can even configure it (even the colors) with a web interface! No mucking about in text files if you don’t want to.

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

I have sort of been eyeing fish on and off for years. I enjoy my oh my zsh setup and have it somewhat customized. I use a modified version of the funky theme. (I can share if interested.) When I'm at work I don't try new things that might affect my productivity (like trying a new shell) and when I have motivation to do techy stuff in my free time I really need to utilize it to do what I want because my focus really meanders.

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

I was the person who used every kind of zsh package manager that existed. I even had performance tweaks for some because they were too slow for me. I didn’t even use oh my zsh because it was too slow, and I had hundreds of customizations and maybe 30 plugins.

I no longer needed any of the plugins except fzf and fzf-marks when I switched to fish. It really did simplify my life a whole lot. I don’t ever mess with configs anymore.

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

That’s fair. But look at it this way, when you’re at work you’re being paid for it, and you might eventually improve your productivity.

Also, you can have a look at oh my fish, it’s an alternative to omz I used before switching to starship.

[–] [email protected] 0 points 5 months ago

I feel pretty productive with CLI stuff. Fish does look nifty though. I'll give it a shot sometime. Oil has been intriguing too, I've enjoyed reading updates about it over the years back on r/programming. https://www.oilshell.org/cross-ref.html?tag=OSH#OSH