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
|
||||||
|
|
15
.znewterm
15
.znewterm
|
@ -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%# "
|
||||||
export REMOTEHOST=`
|
if test "`uname`" = Linux
|
||||||
who -muR |
|
then
|
||||||
tr -s ' ' ' ' |
|
export REMOTEHOST=`
|
||||||
cut -f 8 | cut -d : -f 1`
|
who am i |
|
||||||
|
sed -e 's/.*(\(.*\)).*/\1/'`
|
||||||
|
else
|
||||||
|
export REMOTEHOST=`
|
||||||
|
who -muR |
|
||||||
|
tr -s ' ' ' ' |
|
||||||
|
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
|
||||||
|
|
10
.zshenv
10
.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
|
||||||
export TZ=MET-1MESZ
|
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
|
||||||
|
fi
|
||||||
|
export PAGER=less
|
||||||
|
export XAUTHORITY=$HOME/.Xauthority
|
||||||
|
export CVSROOT=/nfs/wsrdb/usr/local/src/master
|
||||||
|
|
Loading…
Reference in New Issue