X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=f87f59aa28afe649e2348ffb4b02d44ade6d19ca;hb=ca792aa8f7931be3775f6fb1ca6d56c9830dea6c;hp=ba0df24ddcaf16a95bca5a722e49961f199bcd05;hpb=b2d0eea36409a0479db7df5b2010ead590c7e319;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index ba0df24..f87f59a 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Don Okt 18 10:22:10 CEST 2007 [mika] +# Latest change: Mon Nov 05 12:20:29 CET 2007 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -231,7 +231,11 @@ # {{{ set some variables #v# - export EDITOR=${EDITOR:-vim} + if type -p vim &>/dev/null ; then + export EDITOR=${EDITOR:-vim} + else + export EDITOR=${EDITOR:-vi} + fi #v# export MAIL=${MAIL:-/var/mail/$USER} # if we don't set $SHELL then aterm, rxvt,.. will use /bin/sh or /bin/bash :-/