X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/499a48f31a6b81c695b7270fc474299c029669c1..95575d1fdc976ebc74d7336fd537e28a89165429:/bash_profile diff --git a/bash_profile b/bash_profile index e2d8d05..a7c69f7 100644 --- a/bash_profile +++ b/bash_profile @@ -1,7 +1,5 @@ # -*-sh-*- # -# $Id: .profile,v 1.3 1997/01/09 20:30:23 mdw Exp $ -# # Bash startup things # @@ -139,6 +137,7 @@ export BASCAT="-l +n" export CVS_RSH=ssh export CVSROOT=`mdw-conf cvs-root` export SVNROOT=`mdw-conf svn-root` +export P4PORT=`mdw-conf p4-port` P4USER=`mdw-conf p4-user` export BECOME="--preserve-environment" @@ -150,6 +149,7 @@ case "$LC_CTYPE" in *) LESSCHARSET=latin1 ;; esac export LESSCHARSET +__mdw_programp global && export LESSGLOBALTAGS=global export NCURSES_NO_UTF8_ACS=1 # export MAKEFLAGS="-j4" [ "$TMPDIR" ] || eval `tmpdir -b` @@ -157,8 +157,18 @@ export TMP=$TMPDIR export PERL_READLINE_NOWARN=yes [ -z "$NNTPSERVER" ] && export NNTPSERVER=`mdw-conf nntp-server` -[ -z "$http_proxy" ] && export http_proxy=http://`mdw-conf http-proxy`/ -[ -z "$ftp_proxy" ] && export ftp_proxy=$http_proxy + +http=`mdw-conf http-proxy none` +case "${http_proxy-none},$http" in + *,none) ;; + none,*) export http_proxy=http://$http/ ;; +esac +ftp=`mdw-conf ftp-proxy none` +case "${ftp_proxy-none},$ftp,${http_proxy-none}" in + *,none,none) ;; + none,none,*) export ftp_proxy=$http_proxy ;; + none,*,*) export ftp_proxy=http://$ftp/ ;; +esac export XUSERFILESEARCHPATH="$HOME/.Xapps/%N:/usr/lib/X11/%T/%N%S"