💾 Archived View for bbs.geminispace.org › s › OpenBSD › 18156 captured on 2024-08-19 at 00:55:02. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-07-09)
-=-=-=-=-=-=-
Something keeps overwriting my PATH in .profile; or it’s simply not set. Cannot tell which. Any pointers? Relevant snippets:
$ echo $PATH /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin $ . ~/.profile $ echo $PATH /home/ME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/home/ME/.local/bin:/home/ME/.cargo/bin: $ cat ~/. kshrc alias py='python3' $ cat ~/. xsession export LANG=en_US.UTF-8 export ENV=$HOME/.kshrc xrdb -merge $HOME/.Xresources xidle & exec $HOME/.fehbg & exec /us/local/bin/i3 $ cat ~/.Xresources No such file or directory
Jun 26 · 8 weeks ago
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.