PATH and dotfiles question

Something keeps overwriting my PATH in .profile; or it’s simply not set. Cannot tell which. Any pointers? Relevant snippets:

Posted in: s/OpenBSD

💀 requiem

2024-06-26 · 2 years ago

1 Comment

🐙 norayr · 2024-06-29 at 23:15:

i guess ~/.profile sources /etc/profile, and that sets x11 related paths. that means - paths for an interactive shell.

so shell can be interactive, non-interactive, and it can be login shell, and non-login shell.

some files are only read and variables loaded from them, when the shell is login shell, or is interactive shell.

hope that helps at least in a direction to follow, but not sure.