PATH and dotfiles question

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

=> Posted in: s/OpenBSD | πŸ’€ requiem

2024-06-26 Β· 7 months 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.

Proxy Information
Original URL
gemini://bbs.geminispace.org/s/OpenBSD/18156
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
58.402607 milliseconds
Gemini-to-HTML Time
0.466306 milliseconds

This content has been proxied by September (ba2dc).