Set $EDITOR for all interactive shells, not only login shells.

This commit is contained in:
hjp 2006-07-10 15:22:01 +00:00
parent a7d34f96d2
commit 27451e7728
2 changed files with 6 additions and 2 deletions

View File

@ -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 # this is sourced for login shells after .zshenv but before .zshrc
# #
umask 022 umask 022
unset MAILCHECK unset MAILCHECK
export EDITOR=vi
if [ -f /etc/sysconfig/i18n ] if [ -f /etc/sysconfig/i18n ]
then then

5
.zshrc
View File

@ -67,3 +67,8 @@ case `tty` in
*) *)
TMOUT=3600 TMOUT=3600
esac esac
if [ -z "$EDITOR" ]
then
export EDITOR=vi
fi