Solaris adaptations.

This commit is contained in:
hjp 1998-03-25 19:59:51 +00:00
parent 89fe54d525
commit 33947765d4
2 changed files with 17 additions and 7 deletions

View File

@ -23,16 +23,16 @@ fi
if [[ .$TERM. = .xterm. ]] if [[ .$TERM. = .xterm. ]]
then then
prompt="%{]0;%m(%l)%n %~%}$SHLVL.%h%# " prompt="%{]0;%m(%l)%n %~%}$SHLVL.%h%# "
if test "`uname`" = Linux if test "`uname`" = HP-UX
then then
export REMOTEHOST=`
who am i |
sed -e 's/.*(\(.*\)).*/\1/'`
else
export REMOTEHOST=` export REMOTEHOST=`
/bin/who -muR | /bin/who -muR |
tr -s ' ' ' ' | tr -s ' ' ' ' |
cut -f 8 | cut -d : -f 1` cut -f 8 | cut -d : -f 1`
else
export REMOTEHOST=`
who am i |
sed -e 's/.*(\(.*\)).*/\1/'`
fi fi
if [[ -z "$DISPLAY" ]] if [[ -z "$DISPLAY" ]]
then then

14
.zshenv
View File

@ -32,9 +32,10 @@ export LPDEST=wsrplj51
# set PATH to direcories *I* want. # set PATH to direcories *I* want.
PRIVATE_PATH=/usr/local/alpha/mt/bin:$HOME/bin/scripts:$HOME/bin PRIVATE_PATH=/usr/local/alpha/mt/bin:$HOME/bin/scripts:$HOME/bin
LOCAL_PATH=/usr/local/etc:/usr/local/sbin:/usr/local/samba/bin:/usr/local/bin:/usr/local/bin/X11 LOCAL_PATH=/usr/local/etc:/usr/local/sbin:/usr/local/samba/bin:/usr/local/bin:/usr/local/bin/X11:/usr/local/bin/X11:/usr/local/java/bin:/usr/local/povray3/bin
ETC_PATH=/usr/etc:/etc:/usr/sbin:/sbin:/opt/omni/sbin:/opt/omni/lbin ETC_PATH=/usr/etc:/etc:/usr/sbin:/sbin:/opt/omni/sbin:/opt/omni/lbin
BIN_PATH=/usr/softbench/bin:/usr/vue/bin:/usr/bin/X11:/bin:/usr/bin BIN_PATH=/usr/softbench/bin:/usr/vue/bin:/usr/bin/X11:/bin:/usr/bin:/usr/ccs/bin
if [ -r /etc/PATH ] if [ -r /etc/PATH ]
then then
PATH=`cat /etc/PATH`:$PATH PATH=`cat /etc/PATH`:$PATH
@ -120,3 +121,12 @@ case "$FQDN" in
*.wsr.ac.at) *.wsr.ac.at)
;; ;;
esac esac
case "$FQDN" in
melange.wsr.ac.at)
export LD_LIBRARY_PATH=/usr/local/lib
;;
*.wsr.ac.at)
;;
esac