freebsd-update editor choice

Polytropon freebsd at edvax.de
Tue Dec 15 19:54:46 UTC 2015


On Tue, 15 Dec 2015 15:34:43 +0100, Bertram Scharpf wrote:
> Hi,
> 
> On Tuesday, 15. Dec 2015, 14:59:07 +0200, Anton Sayetsky wrote:
> > 15 дек. 2015 г. 14:46 пользователь "Bertram Scharpf" <
> > lists at bertram-scharpf.de> написал:
> > > The problem I fussed about many times and long times without
> > > any understanding up to this day is not how but _where_ to
> > > set the EDITOR environment variable. There is
> > >
> > >   - /etc/login.conf
> > This applies to all logins.
> 
> Not the X login.

That's correct - it will only apply to login shells.
If you want to make sure all your settings work in X,
you can use this "cascade" approach: In ~/.xsession

	#!/bin/csh
	source ~/.cshrc
	exec ~/.xinitrc

This file will be read by the display manager. And then
use ~/.xinitrc for your individual X setup. Now all the
X terminals started inside X will correctly reflect your
shell settings (global and local).

Two advantages: You have your X setup only in _one_ file,
and it will work no matter if you use "startx" or XDM or
Slim or any other display manager (except maybe the one
of Gnome which totally does _not_ what you think it does).



> My workaround is to source "/etc/profile" in " ~/.xinitrc".
> Nevertheless it is surprising behaviour. I log in and
> "login.conf" will not be read.

Interesting approach. :-)




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list