Hi Stuart 

Thank you for your suggestion - however if I do your changes I am getting login 
loop. 
Showing now what I need to comment out to login without infinite loop and ... 
unexpected aliases working good now :) 

This is what I have current in my files
```
openbsd$ cat .Xresources | grep loginShell                                     
XTerm*loginShell:true
```

```
openbsd$ cat .xsession                                                          
   
export LC_CTYPE=en_US.UTF-8
xcompmgr -cCfF &
xrdb -merge ~/.Xresources
i3
```

```
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

#xcompmgr -cCfF &
#xrdb -merge ~/.Xresources
#i3

openbsd$ 
```openbsd$ cat .kshrc                                                          
      
alias ll='ls -lh'
alias vim='nvim'

#PS1='$$\e[32m$$\u@\h$$\e[33m$$ \w$$\e[0m$$ $ '

openbsd$ 
```

Thank everyone who help me 

--
karcio



Mar 5, 2026, 09:17 by [email protected]:

> On 2026-03-04, Otto Moerbeek <[email protected]> wrote:
>
>> On Wed, Mar 04, 2026 at 03:52:12PM +0100, [email protected] wrote:
>>
>> .profile is only read by login shells (see man ksh). By default xterm
>> do not start a login shell. Adding -ls to the xterm command line is
>> one way of fixing that.
>>
>
> the .Xdefaults file installed by default for new OpenBSD accounts
> does set XTerm*loginShell:true though.
>
>>> 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 
>>>
>
> you probably don't want those aliases in your .xsession, just in the
> shells started from your WM.
>
> normally you'd just set the environment variables that would be needed
> for X software in .xsession (e.g. LC_CTYPE, maybe PATH, maybe things like
> MOZ_ACCELERATED=1 / MOZ_WEBRENDER=1 if you use them) and you'd set
> things needed for your interactive shells in profile and/or kshrc.
>
>
>
> --
> Please keep replies on the mailing list.
>

Reply via email to