Cope with missing vim(1).
authorlace <>
Sun, 7 Jan 2007 03:13:12 +0000 (03:13 +0000)
committerlace <>
Sun, 7 Jan 2007 03:13:12 +0000 (03:13 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index c8c6a35..608b6f2 100644 (file)
--- 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'