Merged with Linux version
This commit is contained in:
parent
6aeaf5a6f8
commit
7a26fe20c0
1
.zlogout
1
.zlogout
|
@ -1,4 +1,3 @@
|
||||||
echo .zlogout: $PROMPT
|
|
||||||
if [[ -a ~/Dont_forget ]]
|
if [[ -a ~/Dont_forget ]]
|
||||||
then
|
then
|
||||||
less ~/Dont_forget
|
less ~/Dont_forget
|
||||||
|
|
|
@ -23,10 +23,17 @@ 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
|
||||||
|
then
|
||||||
|
export REMOTEHOST=`
|
||||||
|
who am i |
|
||||||
|
sed -e 's/.*(\(.*\)).*/\1/'`
|
||||||
|
else
|
||||||
export REMOTEHOST=`
|
export REMOTEHOST=`
|
||||||
who -muR |
|
who -muR |
|
||||||
tr -s ' ' ' ' |
|
tr -s ' ' ' ' |
|
||||||
cut -f 8 | cut -d : -f 1`
|
cut -f 8 | cut -d : -f 1`
|
||||||
|
fi
|
||||||
if [[ -z "$DISPLAY" ]]
|
if [[ -z "$DISPLAY" ]]
|
||||||
then
|
then
|
||||||
export DISPLAY=${REMOTEHOST}:0.0
|
export DISPLAY=${REMOTEHOST}:0.0
|
||||||
|
|
8
.zshenv
8
.zshenv
|
@ -62,4 +62,12 @@ done
|
||||||
export PATH=$NEW_PATH
|
export PATH=$NEW_PATH
|
||||||
export LANG=american.iso88591
|
export LANG=american.iso88591
|
||||||
export LC_COLLATE=american.iso88591@nofold
|
export LC_COLLATE=american.iso88591@nofold
|
||||||
|
if test "`uname`" = HP-UX
|
||||||
|
then
|
||||||
|
# need to set that explicitely on HP-UX. MESZ isn't standard, so
|
||||||
|
# I do it ONLY on HP-UX
|
||||||
export TZ=MET-1MESZ
|
export TZ=MET-1MESZ
|
||||||
|
fi
|
||||||
|
export PAGER=less
|
||||||
|
export XAUTHORITY=$HOME/.Xauthority
|
||||||
|
export CVSROOT=/nfs/wsrdb/usr/local/src/master
|
||||||
|
|
Loading…
Reference in New Issue