• 40 Posts
  • 222 Comments
Joined 3 years ago
cake
Cake day: September 29th, 2023

help-circle



  • At the risk of being serious, there’s really no good way to set user environment variables. (It’s been a while since I last checked, so I might be wrong)

    PAM used to have an equivalent to their /etc/environment for users, but that was deprecated or maybe removed last I checked.

    Systemd user environment variables don’t apply in a shell context

    .bashrc only works if you use bash as login shell and I’m not sure if it applies everywhere. Sure, I can set stuff in the shell I use, but it feels weird to modify my shell in order to change global environment variables.