From owner-freebsd-questions@freebsd.org Tue Dec 15 12:59:09 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 A989BA436BB for ; Tue, 15 Dec 2015 12:59:09 +0000 (UTC) (envelope-from vsasjason@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49F271FEE for ; Tue, 15 Dec 2015 12:59:09 +0000 (UTC) (envelope-from vsasjason@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id p66so108771407wmp.1 for ; Tue, 15 Dec 2015 04:59:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XM/zQMwQv18SvIeVCUbZ+5mqHH7vfMVM1AwRWJn6G6Y=; b=gc0rQm6ydnrY/gZF1wZcu38mNayzXjLMvZS/H9xzB0h7YCZawxZVu50033hjuyqzp7 ojd5BbD6/oIm8eFVqabZV274mgGDuIidX/JtpYu3XldzY2FN0Yi5XQq/ay9i+nBdLCQJ VBhnDRDVCA99niSoCYg25N0xDsCm89KtcFmRSWgpGjXC0u8jTbHxj87wMUryV0216MRB CE4U0x+BbM5Hdn5B5Db686KunmnuTOTjFhCucEngNfldrHEiRikYVPxFYigod3bjQc1i SwcOeNgqVGI0rvWRFErspFFCVWgkdE32Zvz68HOCWclocrTPCK6kzeljA+49NPObqSuh 44mg== MIME-Version: 1.0 X-Received: by 10.195.13.137 with SMTP id ey9mr50182668wjd.81.1450184347822; Tue, 15 Dec 2015 04:59:07 -0800 (PST) Received: by 10.194.38.101 with HTTP; Tue, 15 Dec 2015 04:59:07 -0800 (PST) Received: by 10.194.38.101 with HTTP; Tue, 15 Dec 2015 04:59:07 -0800 (PST) In-Reply-To: <20151215124601.GA4020@becker.bs.l> References: <20151213182848.M69104@brightstar.bomgardner.net> <20151215124601.GA4020@becker.bs.l> Date: Tue, 15 Dec 2015 14:59:07 +0200 Message-ID: Subject: Re: freebsd-update editor choice From: Anton Sayetsky To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 12:59:09 -0000 15 =D0=B4=D0=B5=D0=BA. 2015 =D0=B3. 14:46 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0= =BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Bertram Scharpf" < lists@bertram-scharpf.de> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > > Hi, > > On Sunday, 13. Dec 2015, 12:31:22 -0600, Gene wrote: > > I'm using freebsd-update to update my 10.1 system to 10.2. When merging files, > > it insists on using the 'vi' editor. I really, really, REALLY, despise vi. Is > > there a way to get it to use another editor? > > 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. > - /etc/rc You should never touch this file. > - /etc/profile (and /etc/zprofile) For bash-like and zsh shells, system wide. > - /etc/csh.cshrc (or /etc/zshrc) For [t]csh and zsh, system wide. > - ~/.profile (and ~/.zprofile) Bash-like and zsh, user-specific. > - ~/.shrc, ~/.cshrc, (or ~/.zshrc) For sh, [t]csh and zsh, user specific. *rc usually read when shell starts, *profile only when entering interactive session, AFAIK. Advanced shells will read all supported files, for example zsh can read shrc, bashrc and respective *profile. Also, can you show me the shell where this isn't documented in manpage? ;-) > - probably some more I forgot here > > Some programs change their behaviour in dependence of the > EDITOR variable. For example if you log into a host with the > command > > $ ssh otherhost -t tmux > > most of the above files are left unregarded and the TMux > option 'status-keys' may be set to an undesired value. > > Is there any documentation in which order and under which > circumstances the above files are executed or come into > respect? > > By the way: there was a time when I considered Vi/Vim a > really, really, REALLY weird approach to editing. Then I > managed to change my opinion and gave it a try. It was one > of the best decisions in my life. Of course, this mail is > written in Vim. > > Bertram > > > -- > Bertram Scharpf > Stuttgart, Deutschland/Germany > http://www.bertram-scharpf.de > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " freebsd-questions-unsubscribe@freebsd.org"