From owner-freebsd-questions@freebsd.org Tue Dec 15 12:46:11 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 B4DA9A4794A for ; Tue, 15 Dec 2015 12:46:11 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1D7BB157D for ; Tue, 15 Dec 2015 12:46:10 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from becker.bs.l ([85.180.2.104]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0MasKg-1Zu1xY33YQ-00KRfx for ; Tue, 15 Dec 2015 13:46:02 +0100 Received: from bsch by becker.bs.l with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1a8ozS-0001Dd-19 for freebsd-questions@freebsd.org; Tue, 15 Dec 2015 13:46:02 +0100 Date: Tue, 15 Dec 2015 13:46:01 +0100 From: Bertram Scharpf To: freebsd-questions@freebsd.org Subject: Re: freebsd-update editor choice Message-ID: <20151215124601.GA4020@becker.bs.l> Mail-Followup-To: freebsd-questions@freebsd.org References: <20151213182848.M69104@brightstar.bomgardner.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20151213182848.M69104@brightstar.bomgardner.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: Bertram Scharpf X-Provags-ID: V03:K0:7oOIup9rul1cFdxwvReH/Jl3q8OQ94ROrsXjJsmIktBqq6wR56R NyLlQ4hZ3/wjIWQSsoFJv+4pyZtUY7/+x35iZz9KAx/1cbHuTfuHXDd/nHn8jE1YCz7W+Yl hNJns1kBCCx3ZdoJSI+QR0fx6xEyFGPsradNrLkzrGr98YOJ2OMaRMv901DmqrrHa9hP/ZN JZQX28tbVVKH3bWCpe2/w== X-UI-Out-Filterresults: notjunk:1;V01:K0:P/j0vumsGk4=:h8STUV+3FssQ7MSk4pY4RT S7mIHjL69OEInp/mcoYeqzsqv0k6XUaCY/hQ4SYasE34WynFPdMtZlsTu36hC00CNUHC9Ks54 HWq1c8B6/+gxGeamU1JSZveWuYWrat7J2glcG6SrfFLGSMcg8w/NJ4YOnIrBuUojequhUpZiZ tvHwuUzeTy/44t9oUzfGV4Nglj16d6EEvjLrRgoU8A+AvxL2IAFdO+gMFLzDS7c/fifMo4I2R XUxttHGSRTPxycXHFtoK8+OOChwbpvyAEeZyQ0KIswZcGiW6aNckKlmdD7h3HCRmyMBke3A5P m7Gg+xzAkqdCKQVtHKu6e839yEtuAwXU3EB0xyhqnzZGXRy48G+KerCZNO5qMPR3ZLlQX7qYO o+zyjVN6cZJhB2ib4/RKD69cnrH5ObvOwNv9vpGsgk70NqBY553O0VbQtDXRUAY1to7wRRmFf DcRhHJAlaxP800SDKz3CfAKREIEJ3WfNHm9jwOv8jEeoKYLVLESHyZvz/K2n/qw/SH7yc0ZzX /keXfKZnJMUcSuJekkJra9GSKn1niIbnjS/bcupP8hg1ihaa/ZWnBabtdJRB3zI7qpHDOPT+P zdTYQlssktHdJYE3XD0C+b2A2zmdzRxC2aT75vS9xH2k0Fwc9FQi+vN9qC9sNUxZtTNqbT4Va UAi56RLvujADz6m8zOjtgeEVnchBGl4OIl+ELGI0IP3X6y7ZpdRMRl7Qcji7r/cgKbAE= 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:46:11 -0000 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 - /etc/rc - /etc/profile (and /etc/zprofile) - /etc/csh.cshrc (or /etc/zshrc) - ~/.profile (and ~/.zprofile) - ~/.shrc, ~/.cshrc, (or ~/.zshrc) - 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