this post was submitted on 18 Jul 2024
229 points (99.6% liked)

Programmer Humor

19564 readers
634 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 1 year ago
MODERATORS
229
Which one??? (programming.dev)
submitted 4 months ago* (last edited 4 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] 14 points 4 months ago (2 children)

Afaik the difference is whether a session is interactive or not, and non-interactive ones don't source the rc

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

But what would I want in a login shell that I don't also want in a non login shell?

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

Presumably just to get rid of unnecessary stuff that would slow down the start of all bash instances. Also aliases that could fuck with scripts