💾 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

View Raw

More Information

⬅️ Previous capture (2024-07-09)

➡️ Next capture (2024-08-31)

🚧 View Differences

-=-=-=-=-=-=-

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

Jun 26 · 8 weeks ago

1 Comment

🐙 norayr · Jun 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.