$VIMINIT initialization made compatible with: mandrake-10.1
authorlace <>
Thu, 29 Jun 2006 10:03:56 +0000 (10:03 +0000)
committerlace <>
Thu, 29 Jun 2006 10:03:56 +0000 (10:03 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 60dadf6..a761b07 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -177,7 +177,7 @@ if grep 2>/dev/null -q '^..............:0C38 00000000:0000 0A ' /proc/net/tcp;th
        export https_proxy=http://127.0.0.1:3128/
        export   ftp_proxy=http://127.0.0.1:3128/
 fi
        export https_proxy=http://127.0.0.1:3128/
        export   ftp_proxy=http://127.0.0.1:3128/
 fi
-export VIMINIT="source `echo "$BASH_SOURCE"|sed 's/[.]bashrc$/.vimrc/'`"
+export VIMINIT="source `echo "${BASH_SOURCE:-$BASH_ENV}"|sed 's/[.]bashrc$/.vimrc/'`"
 
 export SOCKS5_SERVER=icsocks.holland.sun.com
 
 
 export SOCKS5_SERVER=icsocks.holland.sun.com