From 9b9621f9ae309adb54ef619faed1f62447044cb4 Mon Sep 17 00:00:00 2001 From: lace <> Date: Sun, 7 Jan 2007 03:13:12 +0000 Subject: [PATCH] Cope with missing vim(1). --- .bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index c8c6a35..608b6f2 100644 --- a/.bashrc +++ b/.bashrc @@ -126,7 +126,11 @@ alias ls='ls -bF' alias l='ls -lbF' alias maple="ssh -t vega.fjfi.cvut.cz maple" #alias cc='cc -I/home/short/include' -alias vi='vim' +if which vim &>/dev/null;then + alias vi='vim' +else + echo >&2 'WARNING: No vim(1).' +fi alias grepb='grep --binary-files=binary' alias L='lynx' alias chown='chown --no-dereference' -- 1.8.3.1