From: lace <> Date: Wed, 26 Jul 2006 08:35:22 +0000 (+0000) Subject: Rather unset $VIMINIT if we failed to set it properly. X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=95b71d630f405a72373be767956ea8cb8e7c7a01;hp=f232e87ee2e4cdaa1814c82dab5f928b6ee98fa4 Rather unset $VIMINIT if we failed to set it properly. --- diff --git a/.bashrc b/.bashrc index 29d098f..4ff3a94 100644 --- a/.bashrc +++ b/.bashrc @@ -185,6 +185,7 @@ if grep 2>/dev/null -q '^..............:0C38 00000000:0000 0A ' /proc/net/tcp;th export ftp_proxy=http://127.0.0.1:3128/ fi export VIMINIT="source `echo "${BASH_SOURCE:-$BASH_ENV}"|sed 's/[.]bashrc$/.vimrc/'`" +[ "$VIMINIT" != "source " ] || unset VIMINIT # RHEL3U8 bash-2.05b-41.7 export SOCKS5_SERVER=icsocks.holland.sun.com