Thanks Theo If you start X with xdm, then you need to either A) manually set ENV (or source your entire .profile) from your .xsession that xdm invokes
from https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/www/faq/faq8.html?rev=1.308&content-type=text/html#ksh did the trick On Fri, Apr 14, 2017 at 1:01 PM, Theo Buehler <t...@math.ethz.ch> wrote: > On Fri, Apr 14, 2017 at 11:45:05AM +0800, Adam Steen wrote: >> Hi >> >> I used to start X using startx and when opening terminal my .kshrc >> would get run, >> >> but now i have switched to xenodm, my .kshrc is not being executed. >> >> my .profile has "export ENV=$HOME/.kshrc" >> >> what i am i missing? > > Assuming that you use xterm: does your .Xdefaults contain > > XTerm*loginShell: true > > I removed the following somewhat outdated section from the FAQ because > by default it does: > > https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/www/faq/faq8.html?rev=1.308&content-type=text/html#ksh > > See also this post: > > https://marc.info/?l=openbsd-misc&m=142829426523976&w=2 > > and the other posts in that thread.