From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QGqM0-0003go-Eu for garchives@archives.gentoo.org; Mon, 02 May 2011 10:27:48 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1EC93E0467; Mon, 2 May 2011 10:26:29 +0000 (UTC) Received: from vergina.dyndns.org (cust-218-222.on4.ontelecoms.gr [92.118.218.222]) by pigeon.gentoo.org (Postfix) with ESMTP id ADA10E0467 for ; Mon, 2 May 2011 10:26:28 +0000 (UTC) Received: from [192.168.0.1] (viper.vergina.dyndns.org [192.168.0.1]) by viper.vergina.dyndns.org (Postfix) with ESMTP id 38E1D580; Mon, 2 May 2011 13:26:27 +0300 (EEST) Message-ID: <4DBE86D3.5060701@asyr.hopto.org> Date: Mon, 02 May 2011 13:26:27 +0300 From: Thanasis User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110501 Lightning/1.0b3pre Thunderbird/3.1.10 ThunderBrowse/3.3.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org CC: Mick Subject: Re: [gentoo-user] heads-up: 2011-05-01 baselayout news References: <4DBE734F.9010907@asyr.hopto.org> <201105021044.00925.michaelkintzios@gmail.com> <201105021105.50173.michaelkintzios@gmail.com> In-Reply-To: <201105021105.50173.michaelkintzios@gmail.com> Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 8121f6d1a837856a69ce45d6f462fe70 on 05/02/2011 01:05 PM Mick wrote the following: > Another thing I found, is some incongruity about the file in which the $EDITOR > and $PAGER should be defined. > > The migration guide says: > > "The EDITOR variable is no longer found in /etc/rc.conf. Both EDITOR and PAGER > are set by default in /etc/profile. You should change this as needed in your > ~/.bashrc (or equivalent) file or create */etc/env.d/99editor* and set the > system default there." > > On the other hand the /etc/profile file seems to recommend /etc/profile.d/ > > "# You should override these in your ~/.bashrc (or equivalent) for per-user > # settings. For system defaults, you can add a new file in /etc/profile.d/. > export EDITOR=${EDITOR:-/bin/nano} > export PAGER=${PAGER:-/usr/bin/less}" > > Which one is the authoritative place to define a system wide editor? All above are consistent. The system default is set in a file like /etc/env.d/99editor I use eselect (app-admin/eselect) to set the system defaults. eg I have: # cat /etc/env.d/99editor # Configuration file for eselect # This file has been automatically generated. EDITOR="/usr/bin/vi" VISUAL="/usr/bin/vi" But on a per user basis, a user should define those environment variables in his ~/.bashrc or ~/.bash_profile (or equivalent) shell initialization files.