dot/.zshenv

273 lines
5.4 KiB
Plaintext
Raw Normal View History

unsetopt BGNICE
setopt CHASELINKS
setopt AUTO_CD
setopt AUTO_PUSHD
setopt EXTENDED_GLOB
setopt EXTENDED_HISTORY
setopt LIST_TYPES
unsetopt MARKDIRS
unsetopt MENU_COMPLETE
unsetopt NO_CLOBBER
setopt NOTIFY
setopt NUMERIC_GLOB_SORT
setopt PRINT_EXIT_VALUE
setopt PUSHD_SILENT
setopt PUSHD_TO_HOME
setopt RMSTARSILENT
setopt NO_PROMPT_CR
1997-07-19 15:40:36 +02:00
setopt PUSHD_IGNORE_DUPS
fpath=(~/bin/func)
SAVEHIST=100
HISTSIZE=$SAVEHIST
HISTFILE=~/.zhistory
REPORTTIME=1
export PGPPATH=~/.pgp
export PARINIT=q1
export PARBODY=_A_a
2003-05-24 20:14:41 +02:00
if [ -f $HOME/etc/oraenv ]
then
. $HOME/etc/oraenv
elif [ -f /etc/oraenv ]
1999-02-18 13:11:47 +01:00
then
2003-05-24 20:14:41 +02:00
. /etc/oraenv
1999-02-18 13:11:47 +01:00
fi
1998-11-02 20:13:17 +01:00
# set PATH to direcories *I* want.
2001-10-29 16:27:34 +01:00
PRIVATE_PATH=$HOME/bin/scripts:$HOME/bin:$HOME/public_html/bin:$HOME/pgreplica/bin
2001-11-15 08:09:51 +01:00
ETC_PATH=/usr/sbin:/sbin:/opt/omni/sbin:/opt/omni/lbin:/var/qmail/bin:/usr/local/ssl/bin:/usr/adm/acct/wsr/bin:/opt/tusc/bin:/usr/local/pgsql/bin
LOCAL_PATH=/usr/local/arm-linux/bin:/usr/local/sbin:/usr/local/samba/bin:/usr/local/bin:/usr/local/bin/X11:/usr/local/povray3/bin:/usr/local/majordomo/bin:/usr/lib/majordomo/bin:/usr/local/vnc_x86_linux_2.0:/usr/local/rrdtool-1.0.35/bin:/usr/local/OpenOffice.org1.0.2/program
2001-11-15 08:09:51 +01:00
BIN_PATH=/usr/bin/X11:/bin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/opt/kde/bin:/opt/perl5/bin:/opt/Office51/bin:/usr/games:/usr/contrib/bin
1998-11-02 20:13:17 +01:00
ORACLE_PATH=$ORACLE_HOME/bin
1998-12-03 22:00:39 +01:00
if [ -r /etc/PATH ]
then
PATH=`cat /etc/PATH`:$PATH
fi
2004-04-23 22:33:46 +02:00
ALL_PATH=$PRIVATE_PATH:$LOCAL_PATH:$ETC_PATH:$BIN_PATH:$ORACLE_PATH:$PATH
NEW_PATH=""
for i in ${(s/:/)ALL_PATH}
do
if test -d "$i"
then
case "$NEW_PATH" in
$i:*|*:$i|*:$i:*) ;;
*)
if test -z "$NEW_PATH"
then
NEW_PATH=$i
else
NEW_PATH=$NEW_PATH:$i
fi
esac
fi
done
export PATH=$NEW_PATH
if [ -r /etc/MANPATH ]
then
MANPATH=`cat /etc/MANPATH`:$MANPATH
else
2002-04-28 01:12:12 +02:00
ALL_PATH=/usr/local/qmail/man:/usr/man:/usr/local/man:/usr/X11R6/man:/usr/share/man:/usr/local/pgsql/man:/var/qmail/man:/usr/local/rrdtool-1.0.35/man
NEW_PATH=""
for i in ${(s/:/)ALL_PATH}
do
if test -d "$i"
then
case "$NEW_PATH" in
$i:*|*:$i|*:$i:*) ;;
*)
if test -z "$NEW_PATH"
then
NEW_PATH=$i
else
NEW_PATH=$NEW_PATH:$i
fi
esac
fi
done
MANPATH=$NEW_PATH
fi
export MANPATH
case "`uname -sr`" in
1996-10-26 20:21:04 +02:00
HP-UX*09.*)
export LANG=${LANG:-american.iso88591}
export LC_COLLATE=${LC_COLLATE:-american.iso88591@nofold}
;;
HP-UX*10.*)
export LANG=${LANG:-C.iso88591}
export TZ=MEZ-1MESZ
1996-10-26 20:21:04 +02:00
;;
Linux*)
export LC_COLLATE=POSIX
2004-08-27 14:17:14 +02:00
if [ -z "$LANG" ]
then
utf=`locale -a | grep en_US.utf8`
if [ -n "$utf" ]
then
# this is a bit of a hack -
# locale -a advertises the locale as "en_US.utf8",
# but the glibc accepts both "en_US.utf8" and
# "en_US.UTF-8" and xterm recogizes only the latter.
# So we explicitely set the latter, even though that's
# not the canonical name and may break some day.
#
LANG=en_US.UTF-8
else
# fall back to latin 1.
LANG=en_US.iso88591
fi
fi
2004-01-06 19:03:14 +01:00
# export LC_TIME=de_AT # don't remember what that was for
;;
1996-10-26 20:21:04 +02:00
esac
2004-01-06 19:03:14 +01:00
case "$LANG" in
*.iso88591)
export LESSCHARSET=latin1
export NLS_LANG=american_america.WE8ISO8859P1
;;
*.UTF-8)
#export LESSCHARSET=latin1
export NLS_LANG=american_america.UTF8
# export LC_TIME=de_AT.UTF-8
;;
esac
2003-10-12 00:48:27 +02:00
export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
1999-09-01 15:00:13 +02:00
if [ -x /usr/bin/less ]
then
1997-07-19 15:40:36 +02:00
export PAGER="/usr/bin/less -i"
elif [ -x /usr/local/bin/less ]
then
1997-07-19 15:40:36 +02:00
export PAGER="/usr/local/bin/less -i"
fi
if [ -z "$XAUTHORITY" ]
then
export XAUTHORITY=$HOME/.Xauthority
fi
1997-07-19 15:40:36 +02:00
case "$HOST" in
*.*)
export FQDN=$HOST
;;
*)
export FQDN=`fqdn`
;;
esac
case "$FQDN" in
*.wsr.ac.at)
export LPDEST=wsrpl1
;;
esac
case "$FQDN" in
braveheart.wsr.ac.at)
1998-03-12 14:18:37 +01:00
export CVSROOT=/usr/local/src/master
1997-07-19 15:40:36 +02:00
;;
1999-04-20 12:43:32 +02:00
*.luga.at|*.luga.or.at)
export CVSROOT=cvs.luga.at:/home/cvs
1999-04-20 12:43:32 +02:00
;;
2002-06-11 14:11:57 +02:00
*.adcon.at)
export CVSROOT=bulldog.adcon.at:/home/cvs/cvsroot
;;
1998-10-05 10:24:37 +02:00
*)
1998-03-12 14:18:37 +01:00
export CVSROOT=cvs.wsr.ac.at:/usr/local/src/master
1997-07-19 15:40:36 +02:00
;;
esac
for i in /usr/local/bin/ssh /usr/bin/ssh
do
if [ -x $i ]
then
export CVS_RSH=$i
2004-03-24 16:03:30 +01:00
export RSYNC_RSH=$i
fi
done
1997-07-19 15:40:36 +02:00
if test "`uname`" = Linux
then
limit coredumpsize 64M
fi
1998-04-28 01:45:24 +02:00
1998-04-28 22:00:15 +02:00
case "$FQDN" in
teal.hjp.at)
1997-07-19 15:40:36 +02:00
export MAIL=$HOME/Maildir
;;
*.wsr.ac.at)
;;
esac
1998-03-25 20:59:51 +01:00
1998-04-28 01:45:24 +02:00
case "$FQDN" in
*.hjp.at)
export NNTPSERVER=teal.hjp.at
1998-04-28 01:45:24 +02:00
;;
*.wsr.ac.at)
export NNTPSERVER=news.wsr.ac.at
;;
esac
1998-12-03 22:00:39 +01:00
case "$FQDN" in
*.hjp.at)
export http_proxy=http://teal.hjp.at:3128/
2000-09-16 18:45:12 +02:00
;;
2004-08-16 00:14:38 +02:00
samkar.wsr.ac.at|wsrgeh.wsr.ac.at|laire.wsr.ac.at)
unset http_proxy
2004-06-11 19:58:09 +02:00
;;
1998-12-03 22:00:39 +01:00
*.wsr.ac.at)
export http_proxy=http://squid.wsr.ac.at:3128/
;;
esac
1998-03-25 20:59:51 +01:00
case "$FQDN" in
2003-05-28 09:37:11 +02:00
wsrgeh.wsr.ac.at|coney.wsr.ac.at)
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/local/lib
;;
1998-11-02 20:13:17 +01:00
enkur.wsr.ac.at)
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/local/mnemonic/lib:/usr/local/mnemonic/lib/msg:/usr/local/lib
1998-11-02 20:13:17 +01:00
;;
2004-01-06 19:03:14 +01:00
melange.wsr.ac.at|spirit.luga.at|chthon.h.hjp.at|posbi.wsr.ac.at|wsrgeh.wsr.ac.at|braveheart.wsr.ac.at|dialog.wsr.ac.at|samkar.wsr.ac.at|yoyo.hjp.at|yoyo.wsr.ac.at|localhost.localdomain)
1998-03-25 20:59:51 +01:00
export LD_LIBRARY_PATH=/usr/local/lib
;;
posbi.wsr.ac.at)
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/local/lib
;;
1998-03-25 20:59:51 +01:00
*.wsr.ac.at)
;;
trout.adcon.at|teal.hjp.at)
2002-08-09 16:10:41 +02:00
export LD_LIBRARY_PATH=$HOME/wrk/a840/a840sw/ia32/lib:/usr/local/lib
2002-01-28 13:35:21 +01:00
;;
1998-03-25 20:59:51 +01:00
esac
2000-09-01 17:17:11 +02:00
2000-03-01 16:21:09 +01:00
export TABLE_DELIMITER='|'
2001-10-16 18:31:19 +02:00
if [ -d /usr/local/pgsql/data/ ]
then
export PGDATA=/usr/local/pgsql/data/
fi
2001-11-01 15:33:48 +01:00
export MAKEFLAGS="-I $HOME/include"
if [ -d /usr/local/www ]
then
export HOME_WWW=/usr/local/www
elif [ -d /home/www ]
then
export HOME_WWW=/home/www
fi