From 27451e77284908992b37d6b764a7059dde8eb462 Mon Sep 17 00:00:00 2001 From: hjp Date: Mon, 10 Jul 2006 15:22:01 +0000 Subject: [PATCH] Set $EDITOR for all interactive shells, not only login shells. --- .zprofile | 3 +-- .zshrc | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.zprofile b/.zprofile index 9737266..e61966d 100644 --- a/.zprofile +++ b/.zprofile @@ -1,12 +1,11 @@ # -# $Id: .zprofile,v 1.15 2006-02-02 16:01:12 hjp Exp $ +# $Id: .zprofile,v 1.16 2006-07-10 15:22:01 hjp Exp $ # # this is sourced for login shells after .zshenv but before .zshrc # umask 022 unset MAILCHECK -export EDITOR=vi if [ -f /etc/sysconfig/i18n ] then diff --git a/.zshrc b/.zshrc index eb201bb..98be603 100644 --- a/.zshrc +++ b/.zshrc @@ -67,3 +67,8 @@ case `tty` in *) TMOUT=3600 esac + +if [ -z "$EDITOR" ] +then + export EDITOR=vi +fi