From efa5f84d966c8edf99a2f5b892166f524dac4d1a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 27 Aug 2010 08:23:32 +0200 Subject: Set http proxy if available --- etc/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/.zshrc b/etc/.zshrc index d6f940a..c941ed2 100644 --- a/etc/.zshrc +++ b/etc/.zshrc @@ -72,6 +72,10 @@ if (( EUID != 0)) { export MAKEFLAGS=j$(grep -c '^processor' /proc/cpuinfo) +if [[ -e /sys/class/net/vpn ]] { + export http_proxy='http://10.200.200.2:8080/' +} + if [[ -n ${commands[clang]} ]] { export CC=clang } -- cgit v1.2.3