this post was submitted on 18 Jul 2024
2 points (100.0% liked)

Programmer Humor

28669 readers
1245 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
 

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
top 2 comments
sorted by: hot top controversial new old
[–] bigredgiraffe@lemmy.world 0 points 2 years ago (1 children)

I found this diagram on SO at one point but I can’t find the post and it is the best explanation I have found for how all of the files work for bash and zsh, each color is an individual path of execution (eg, follow the red line).

Bottom line though, it only really matters if you are overriding something that is already defined, for example I tell my users to use zshrc and I provide defaults and common things in zprofile because zshrc is executed last when they login.

[–] JackbyDev@programming.dev 1 points 2 years ago

I feel like I couldn't make this more confusing if I tried. What is doing on with the golden arrows around /etc/profile??