From owner-freebsd-questions@freebsd.org Tue Dec 15 19:54:46 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9FF4A48139 for ; Tue, 15 Dec 2015 19:54:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 73E811164 for ; Tue, 15 Dec 2015 19:54:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-31-25.dynamic.qsc.de [92.195.31.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id D82D03CF3F; Tue, 15 Dec 2015 20:54:37 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id tBFJscc0014911; Tue, 15 Dec 2015 20:54:38 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 15 Dec 2015 20:54:38 +0100 From: Polytropon To: Bertram Scharpf Cc: freebsd-questions@freebsd.org Subject: Re: freebsd-update editor choice Message-Id: <20151215205438.a66ed0c4.freebsd@edvax.de> In-Reply-To: <20151215143443.GA20588@becker.bs.l> References: <20151213182848.M69104@brightstar.bomgardner.net> <20151215124601.GA4020@becker.bs.l> <20151215143443.GA20588@becker.bs.l> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2015 19:54:46 -0000 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@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, ...