From be976991f5a7e389fb42926e709442cdc3fada63 Mon Sep 17 00:00:00 2001 From: hjp Date: Tue, 9 Oct 2007 11:49:11 +0000 Subject: [PATCH] Don't try to autodetect http_proxy on HP-UX - it takes a looong time. --- .zprofile | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.zprofile b/.zprofile index 6d20336..69614a2 100644 --- a/.zprofile +++ b/.zprofile @@ -1,5 +1,5 @@ # -# $Id: .zprofile,v 1.18 2007-10-01 15:06:50 hjp Exp $ +# $Id: .zprofile,v 1.19 2007-10-09 11:49:11 hjp Exp $ # # this is sourced for login shells after .zshenv but before .zshrc # @@ -25,12 +25,17 @@ then export RGBDEF=/etc/X11/rgb.txt fi -unset http_proxy -for i in http://zeno.hjp.at:3128/ http://squid.wsr.ac.at:3128/ -do - if http_proxy=$i wget -q -O /dev/null http://www.hjp.at - then - http_proxy=$i - break - fi -done +if [ "`uname`" = HP-UX ] +then + export http_proxy=http://squid.wsr.ac.at:3128/ +else + unset http_proxy + for i in http://zeno.hjp.at:3128/ http://squid.wsr.ac.at:3128/ + do + if http_proxy=$i wget -q -O /dev/null http://www.hjp.at + then + export http_proxy=$i + break + fi + done +fi