2000-02-02 02:53:05 +01:00
|
|
|
|
1995-06-02 12:48:24 +02:00
|
|
|
unsetopt BGNICE
|
|
|
|
setopt CHASELINKS
|
|
|
|
setopt AUTO_CD
|
|
|
|
setopt AUTO_PUSHD
|
|
|
|
setopt EXTENDED_GLOB
|
1999-08-18 16:39:51 +02:00
|
|
|
setopt EXTENDED_HISTORY
|
1995-06-02 12:48:24 +02:00
|
|
|
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
|
2016-11-08 11:53:08 +01:00
|
|
|
setopt APPEND_HISTORY
|
1995-06-02 12:48:24 +02:00
|
|
|
|
1997-07-19 15:40:36 +02:00
|
|
|
setopt PUSHD_IGNORE_DUPS
|
|
|
|
|
2016-11-08 11:53:08 +01:00
|
|
|
SAVEHIST=1000
|
|
|
|
HISTSIZE=2000
|
1995-06-02 12:48:24 +02:00
|
|
|
HISTFILE=~/.zhistory
|
|
|
|
export PGPPATH=~/.pgp
|
|
|
|
export PARINIT=q1
|
|
|
|
export PARBODY=_A_a
|
2006-04-18 23:06:06 +02:00
|
|
|
export DEBEMAIL=hjp@hjp.at
|
2016-11-21 14:54:29 +01:00
|
|
|
export DEB_SIGN_KEYID=12FE285D
|
2012-07-05 19:32:14 +02:00
|
|
|
export ACK_COLOR_FILENAME='blue on_white'
|
2006-04-18 23:06:06 +02:00
|
|
|
|
1995-06-02 12:48:24 +02:00
|
|
|
|
2005-11-18 09:39:10 +01:00
|
|
|
# don't rely on a sane path at this point:
|
|
|
|
for i in /usr/bin/preppath /usr/local/bin/preppath
|
|
|
|
do
|
|
|
|
if [ -x $i ]
|
|
|
|
then
|
|
|
|
preppath=$i
|
|
|
|
break;
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ -n "$preppath" ]
|
1997-02-27 12:55:26 +01:00
|
|
|
then
|
2005-09-22 17:36:11 +02:00
|
|
|
if [ -r /etc/PATH ]
|
|
|
|
then
|
2005-11-18 09:39:10 +01:00
|
|
|
PATH=$($preppath $(cat /etc/PATH) )
|
2005-09-22 17:36:11 +02:00
|
|
|
fi
|
2005-10-31 11:00:24 +01:00
|
|
|
|
2006-01-11 18:27:34 +01:00
|
|
|
# first prepend important stuff - in order of increasing priority:
|
|
|
|
|
2018-09-18 17:26:56 +02:00
|
|
|
setopt NULL_GLOB
|
|
|
|
|
2006-12-03 20:39:59 +01:00
|
|
|
PATH=`$preppath -c /usr/bin/X11:/usr/games:/usr/contrib/bin`
|
|
|
|
PATH=`$preppath -c /bin:/usr/bin`
|
2018-01-31 23:09:13 +01:00
|
|
|
PATH=`$preppath -c /usr/sbin:/sbin`
|
2006-01-15 19:06:59 +01:00
|
|
|
PATH=`$preppath -c /usr/local/sbin:/usr/local/bin`
|
2018-01-31 23:04:36 +01:00
|
|
|
`$preppath -c -e /usr/local/node-v8.9.4-linux-x86/bin`
|
2018-04-11 12:19:08 +02:00
|
|
|
`$preppath -c -e /usr/local/node-v8.9.4-linux-x64/bin`
|
2018-09-13 21:15:57 +02:00
|
|
|
`$preppath -c -e -r /usr/lib/go-1.*/bin`
|
2020-03-23 12:30:28 +01:00
|
|
|
`$preppath -c -e -r /usr/local/go-1.*/bin`
|
2019-10-10 10:10:43 +02:00
|
|
|
`$preppath -c -e -r $HOME/go/bin`
|
2015-01-09 13:31:24 +01:00
|
|
|
PATH=`$preppath -c $HOME/scripts`
|
2005-11-18 09:39:10 +01:00
|
|
|
PATH=`$preppath -c $HOME/bin/hosts:$HOME/bin`
|
2005-10-31 11:00:24 +01:00
|
|
|
|
|
|
|
# then append less important stuff
|
2008-06-20 11:30:38 +02:00
|
|
|
PATH=`apppath -c /usr/local/www/offline/devel.fiw/bin`
|
2018-09-18 17:26:56 +02:00
|
|
|
|
|
|
|
unsetopt NULL_GLOB
|
1997-02-27 12:55:26 +01:00
|
|
|
fi
|
1995-06-02 12:48:24 +02:00
|
|
|
|
1997-07-19 16:25:48 +02:00
|
|
|
if [ -r /etc/MANPATH ]
|
|
|
|
then
|
|
|
|
MANPATH=`cat /etc/MANPATH`:$MANPATH
|
1997-07-25 00:02:10 +02:00
|
|
|
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
|
2001-10-20 22:21:13 +02:00
|
|
|
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
|
1997-07-19 16:25:48 +02:00
|
|
|
fi
|
1997-07-25 00:02:10 +02:00
|
|
|
export MANPATH
|
1997-07-19 16:25:48 +02:00
|
|
|
|
|
|
|
|
1996-10-26 20:25:17 +02:00
|
|
|
case "`uname -sr`" in
|
2003-03-07 09:54:03 +01: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
|
2004-09-06 11:28:22 +02:00
|
|
|
export LANG
|
2004-08-27 14:17:14 +02:00
|
|
|
fi
|
2004-01-06 19:03:14 +01:00
|
|
|
# export LC_TIME=de_AT # don't remember what that was for
|
2003-03-07 09:54:03 +01:00
|
|
|
;;
|
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 NLS_LANG=american_america.UTF8
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2003-10-12 00:48:27 +02:00
|
|
|
export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
|
2019-10-10 17:00:48 +02:00
|
|
|
export NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24:MI:SS.FF'
|
1999-09-01 15:00:13 +02:00
|
|
|
|
1997-07-25 00:02:10 +02:00
|
|
|
|
1996-02-22 14:09:47 +01:00
|
|
|
if [ -x /usr/bin/less ]
|
|
|
|
then
|
1997-07-19 15:40:36 +02:00
|
|
|
export PAGER="/usr/bin/less -i"
|
1996-02-22 14:09:47 +01:00
|
|
|
elif [ -x /usr/local/bin/less ]
|
|
|
|
then
|
1997-07-19 15:40:36 +02:00
|
|
|
export PAGER="/usr/local/bin/less -i"
|
1996-02-22 14:39:40 +01:00
|
|
|
fi
|
2001-08-17 10:55:51 +02:00
|
|
|
if [ -z "$XAUTHORITY" ]
|
|
|
|
then
|
|
|
|
export XAUTHORITY=$HOME/.Xauthority
|
|
|
|
fi
|
1997-07-19 15:40:36 +02:00
|
|
|
|
1998-02-23 10:42:36 +01:00
|
|
|
case "$HOST" in
|
|
|
|
*.*)
|
|
|
|
export FQDN=$HOST
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
export FQDN=`fqdn`
|
|
|
|
;;
|
|
|
|
esac
|
2001-12-03 17:41:40 +01:00
|
|
|
|
|
|
|
case "$FQDN" in
|
|
|
|
*.wsr.ac.at)
|
2007-03-09 09:56:25 +01:00
|
|
|
export LPDEST=wsrcolor
|
2001-12-03 17:41:40 +01:00
|
|
|
;;
|
|
|
|
esac
|
1998-02-23 10:42:36 +01:00
|
|
|
|
|
|
|
case "$FQDN" in
|
1999-04-20 12:43:32 +02:00
|
|
|
*.luga.at|*.luga.or.at)
|
2002-01-05 23:27:17 +01:00
|
|
|
export CVSROOT=cvs.luga.at:/home/cvs
|
1999-04-20 12:43:32 +02:00
|
|
|
;;
|
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
|
2000-08-22 18:08:54 +02:00
|
|
|
|
|
|
|
for i in /usr/local/bin/ssh /usr/bin/ssh
|
|
|
|
do
|
|
|
|
if [ -x $i ]
|
|
|
|
then
|
2000-08-22 18:12:39 +02:00
|
|
|
export CVS_RSH=$i
|
2004-03-24 16:03:30 +01:00
|
|
|
export RSYNC_RSH=$i
|
2000-08-22 18:08:54 +02:00
|
|
|
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
|
|
|
|
|
|
|
case "$FQDN" in
|
2002-10-27 01:03:16 +02:00
|
|
|
*.hjp.at)
|
2012-12-28 12:43:40 +01:00
|
|
|
export NNTPSERVER=news.luga.at
|
1998-04-28 01:45:24 +02:00
|
|
|
;;
|
|
|
|
*.wsr.ac.at)
|
|
|
|
export NNTPSERVER=news.wsr.ac.at
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
1998-03-25 20:59:51 +01:00
|
|
|
case "$FQDN" in
|
2017-12-14 15:37:14 +01:00
|
|
|
pashkan.wsr.ac.at)
|
2007-03-07 12:44:27 +01:00
|
|
|
export LD_LIBRARY_PATH=`preppath -v LD_LIBRARY_PATH /usr/local/lib`
|
|
|
|
;;
|
2017-12-14 15:37:14 +01:00
|
|
|
hrunkner.hjp.at)
|
2011-09-17 23:52:17 +02:00
|
|
|
export LD_LIBRARY_PATH=`apppath -v LD_LIBRARY_PATH /usr/lib/jni`
|
|
|
|
;;
|
1998-03-25 20:59:51 +01:00
|
|
|
*.wsr.ac.at)
|
|
|
|
;;
|
|
|
|
esac
|
1998-08-06 19:34:58 +02:00
|
|
|
|
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"
|
2003-08-10 19:09:17 +02:00
|
|
|
if [ -d /usr/local/www ]
|
|
|
|
then
|
|
|
|
export HOME_WWW=/usr/local/www
|
|
|
|
elif [ -d /home/www ]
|
|
|
|
then
|
|
|
|
export HOME_WWW=/home/www
|
|
|
|
fi
|
2005-10-31 11:20:09 +01:00
|
|
|
|
2005-12-16 11:23:24 +01:00
|
|
|
if [ -f $HOME/etc/oraenv ]
|
|
|
|
then
|
|
|
|
. $HOME/etc/oraenv
|
|
|
|
elif [ -f /etc/oraenv ]
|
|
|
|
then
|
|
|
|
. /etc/oraenv
|
|
|
|
fi
|
2007-03-16 09:51:10 +01:00
|
|
|
if [ -n "$ORACLE_HOME" ]
|
|
|
|
then
|
|
|
|
PATH=`apppath "$ORACLE_HOME/bin"`
|
|
|
|
fi
|
2008-02-14 17:33:31 +01:00
|
|
|
|
|
|
|
case "$FQDN" in
|
|
|
|
shalmaneser.wsr.ac.at)
|
2010-08-31 11:12:50 +02:00
|
|
|
export WZRP_CONN=~/.dbi/fiwssd
|
2008-02-14 17:33:31 +01:00
|
|
|
;;
|
|
|
|
pashkan.wsr.ac.at)
|
2011-03-21 15:25:01 +01:00
|
|
|
export WZRP_CONN=~/.dbi/fiwdevel
|
|
|
|
;;
|
2009-11-03 12:16:29 +01:00
|
|
|
algernon.wsr.ac.at)
|
2010-07-22 10:01:11 +02:00
|
|
|
export WZRP_CONN=~/.dbi/fiwssd
|
2009-11-03 12:16:29 +01:00
|
|
|
;;
|
2013-01-14 12:05:50 +01:00
|
|
|
enmetena.wsr.ac.at)
|
|
|
|
export WZRP_CONN=~/.dbi/fiwdevel
|
|
|
|
;;
|
2008-02-14 17:33:31 +01:00
|
|
|
esac
|
|
|
|
|
2008-07-21 15:11:53 +02:00
|
|
|
case "$FQDN" in
|
2013-10-16 12:13:52 +02:00
|
|
|
shalmaneser.wsr.ac.at|pashkan.wsr.ac.at)
|
2011-10-07 09:36:25 +02:00
|
|
|
export PERL5LIB=`apppath -c -v PERL5LIB ~/lib/perl5 /usr/local/www/offline/$USER.fiw/lib/perl5 /usr/local/www/offline/dal.fiw/lib/perl5`
|
|
|
|
PATH=`apppath -c /usr/local/www/offline/$USER.fiw/bin /usr/local/www/offline/dal.fiw/bin`
|
2008-07-21 15:11:53 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2009-09-15 15:26:14 +02:00
|
|
|
case "$FQDN" in
|
|
|
|
algernon.wsr.ac.at)
|
|
|
|
export PGHOST=$FQDN
|
|
|
|
export PGUSER=fiw
|
|
|
|
;;
|
|
|
|
pashkan.wsr.ac.at)
|
|
|
|
export PGHOST=$FQDN
|
|
|
|
export PGUSER=fiw
|
|
|
|
;;
|
2018-01-22 18:40:45 +01:00
|
|
|
teleute.wsr.ac.at)
|
|
|
|
export PGHOST=wds.wifo.ac.at
|
|
|
|
;;
|
2009-09-15 15:26:14 +02:00
|
|
|
esac
|
|
|
|
|
2009-09-23 12:10:57 +02:00
|
|
|
case "$FQDN" in
|
|
|
|
*.wsr.ac.at)
|
|
|
|
export LOCALDOMAIN="wsr.ac.at hjp.at"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2012-07-05 19:32:14 +02:00
|
|
|
case "$FQDN" in
|
2017-12-14 15:37:14 +01:00
|
|
|
tsimri.wsr.ac.at)
|
2012-07-05 19:32:14 +02:00
|
|
|
export GET_PASS_FILES="/home/hjp/wrk/admin/info/pwd_work.gpg /home/hjp/Notes/pw.gpg"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2014-12-16 20:24:02 +01:00
|
|
|
if [ -f ~/perl5/perlbrew/etc/bashrc ]
|
|
|
|
then
|
|
|
|
source ~/perl5/perlbrew/etc/bashrc
|
|
|
|
fi
|
|
|
|
|
2014-12-06 17:35:36 +01:00
|
|
|
case "$FQDN" in
|
2018-01-13 21:41:42 +01:00
|
|
|
oro.wsr.ac.at)
|
|
|
|
cleansing=~/wrk/wds/Software/WDS/Module/30_CLEANSING
|
|
|
|
$(preppath -e -v PYTHONPATH -c $cleansing/lib)
|
|
|
|
$(preppath -e -v PYTHONPATH -c $cleansing/system/app/extraction)
|
2014-12-06 17:35:36 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2017-02-13 20:26:02 +01:00
|
|
|
|
|
|
|
case "$FQDN" in
|
|
|
|
*.wsr.ac.at)
|
2019-09-28 10:25:13 +02:00
|
|
|
if [ -z "$GIT_AUTHOR_EMAIL" ]
|
|
|
|
then
|
|
|
|
export GIT_AUTHOR_EMAIL="$LOGNAME@wsr.ac.at"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*.hjp.at)
|
|
|
|
if [ -z "$GIT_AUTHOR_EMAIL" ]
|
|
|
|
then
|
|
|
|
export GIT_AUTHOR_EMAIL="$LOGNAME@hjp.at"
|
|
|
|
fi
|
|
|
|
if [ -z "$GIT_AUTHOR_NAME" ]
|
|
|
|
then
|
|
|
|
export GIT_AUTHOR_NAME="Peter J. Holzer"
|
|
|
|
fi
|
2017-02-13 20:26:02 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2017-12-14 15:28:05 +01:00
|
|
|
if [ -d /etc/profile.d ]
|
|
|
|
then
|
|
|
|
for i in /etc/profile.d/*.sh
|
|
|
|
do
|
|
|
|
. $i
|
|
|
|
done
|
|
|
|
fi
|