Hi Antony your solution does not work for me. if I add `. .profile` on the top of the .xsession I am in login infinite loop (xenodm) - so I had to uncomment this line
openbsd$ cat .profile # $OpenBSD: dot.profile,v 1.8 2022/08/10 07:40:37 # # sh/ksh initialization PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/l/sbin export PATH HOME TERM export HISTFILE=~/.ksh_history export LC_CTYPE=en_US.UTF-8 export ENV=$HOME/.kshrc export PATH=$HOME/bin:/usr/local/bin:$PATH openbsd$ cat .xsession #. .profile export LC_CTYPE=en_US.UTF-8 xcompmgr -cCfF & xrdb -merge ~/.Xresources i3 openbsd$ cat .kshrc alias ll='ls -lh' alias vim='nvim' #PS1='$$\e[32m$$\u@\h$$\e[33m$$ \w$$\e[0m$$ $ ' Regarding what I am trying to achieve is just simple I want to set some alias for start -- karcio Mar 3, 2026, 17:49 by [email protected]: > xenodm uses your .xsession to set up your session rather than your .profile, > so you want to source your .profile in there and then you should be good to > go (after logging out and in again). Just throw this: > ``` > . .profile > ``` > at the top of your .xsession file. > > > On 3 March 2026 16:12:48 GMT, [email protected] wrote: > >> hi, trying to get work .profile with .kshrc >> >> I am login to X using xenodm then I start i3. My problem going me crazy, I >> just want to profile file to load my kshrc - but for some reason this does >> not work. I was trying to find answer even using some AI, but still no >> working. >> >> This is content of my files. >> ``` >> openbsd$ cat .profile >> >> # $OpenBSD: dot.profile,v 1.8 2022/08/10 07:40:37 tb Exp $ >> # >> # sh/ksh initialization >> >> PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin >> export PATH HOME TERM >> export HISTFILE=~/.ksh_history >> export LC_CTYPE=en_US.UTF-8 >> export ENV=$HOME/.kshrc >> export PATH=$HOME/bin:/usr/local/bin:$PATH >> ``` >> and >> ``` >> openbsd$ cat .kshrc >> >> >> alias ll='ls -lh' >> alias vim='nvim' >> >> #PS1='$$\e[32m$$\u@\h$$\e[33m$$ \w$$\e[0m$$ $ ' >> >> openbsd$ >> ``` >> >> anyone can help? Is xenodm controls above files? >> >> -- >> karcio >>

