commit 6aeaf5a6f8f2743b742fd9495705ac113b3c4419 Author: hjp Date: Fri Jun 2 10:48:24 1995 +0000 Put .zdot-Files under CVS to make maintenance across machines easier. diff --git a/.zlogin b/.zlogin new file mode 100644 index 0000000..426bd30 --- /dev/null +++ b/.zlogin @@ -0,0 +1,2 @@ +setopt ignoreeof +mesg y diff --git a/.zlogout b/.zlogout new file mode 100644 index 0000000..80f76ab --- /dev/null +++ b/.zlogout @@ -0,0 +1,5 @@ +echo .zlogout: $PROMPT +if [[ -a ~/Dont_forget ]] +then + less ~/Dont_forget +fi diff --git a/.znewterm b/.znewterm new file mode 100644 index 0000000..bdb635b --- /dev/null +++ b/.znewterm @@ -0,0 +1,43 @@ +# Initializations to be done on a new terminal. This is +# called both from .zlogin and .zshrc + +# default control characters +stty erase  kill  susp  intr  + +# terminal customization + +if [[ .$TERM. = .console. ]] +then + # Linux console + TERM=vt200 + stty rows 25 cols 80 +fi + +if [[ .$TERM. = .vt200. ]] +then + # vt200 not known here + TERM=vt100 + stty erase  +fi + +if [[ .$TERM. = .xterm. ]] +then + prompt="%{]0;%m(%l)%n %~%}$SHLVL.%h%# " + export REMOTEHOST=` + who -muR | + tr -s ' ' ' ' | + cut -f 8 | cut -d : -f 1` + if [[ -z "$DISPLAY" ]] + then + export DISPLAY=${REMOTEHOST}:0.0 + fi + if expr "$REMOTEHOST" : ".*\.vmars\.tuwien\.ac\.at" > /dev/null + then + stty erase  + fi + eval `resize` +else + prompt="%m(%l)%n %~ $SHLVL.%h%# " +fi + +znewtermexecuted=true diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.zprofile @@ -0,0 +1 @@ + diff --git a/.zshenv b/.zshenv new file mode 100644 index 0000000..aead530 --- /dev/null +++ b/.zshenv @@ -0,0 +1,65 @@ +unsetopt BGNICE +setopt CHASELINKS +setopt AUTO_CD +setopt AUTO_PUSHD +setopt EXTENDED_GLOB +setopt LIST_TYPES +unsetopt MARKDIRS +unsetopt MENU_COMPLETE +unsetopt NO_CLOBBER +setopt NOTIFY +setopt NUMERIC_GLOB_SORT +setopt PRINT_EXIT_VALUE +setopt PUSHD_IGNORE_DUPS +setopt PUSHD_SILENT +setopt PUSHD_TO_HOME +setopt RMSTARSILENT +setopt NO_PROMPT_CR + +# fix problem with nfs +pushd ~ +HOME=`pwd` +popd + +fpath=(~/bin/func) +SAVEHIST=100 +HISTSIZE=$SAVEHIST +HISTFILE=~/.zhistory +REPORTTIME=1 +TMOUT=0 +export PGPPATH=~/.pgp +export EDITOR=`echo =vi` +export LESSCHARSET=latin1 +export PARINIT=q1 +export PARBODY=_A_a +export LPDEST=wsrplj51 + +# set PATH to direcories *I* want. +PRIVATE_PATH=/usr/local/alpha/mt/bin:/users4/hjp/bin/scripts:/users4/hjp/bin +ETC_PATH=/usr/local/etc:/usr/etc:/etc:/usr/local/sbin:/usr/sbin:/sbin +BIN_PATH=/usr/softbench/bin:/usr/vue/bin:/usr/bin/X11:/bin:/usr/bin:/usr/local/bin:/usr/local/bin/X11 + +ALL_PATH=$PRIVATE_PATH:$ETC_PATH:$BIN_PATH:$PATH +NEW_PATH="" + +for i in ${(s/:/)ALL_PATH} +do + if test -d "$i" + then + if echo "$NEW_PATH" | egrep '(^|:)'"$i"'(:|$)' > /dev/null + then + else + if test -z "$NEW_PATH" + then + NEW_PATH=$i + else + NEW_PATH=$NEW_PATH:$i + fi + fi + fi +done + +export PATH=$NEW_PATH +export LANG=american.iso88591 +export LC_COLLATE=american.iso88591@nofold +export TZ=MET-1MESZ diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..c022613 --- /dev/null +++ b/.zshrc @@ -0,0 +1,28 @@ +bindkey -v + +alias amke=make +alias arm=/bin/rm +alias a=alias +alias h=history +alias j=jobs +alias v=vi +alias lo=logout +alias md=mkdir +alias pop=popd +alias rd=rmdir +alias ball='pd /usr/local/projects/ball; source s' +alias srcsrv='pd ~/wrk/srcservice/clients/exp' +alias fixsz='set noglob; eval `resize`;unset noglob' +alias ls='ls -F' +alias ll='ls -lF' +alias la='ls -alsF' +alias lc='ls -l *.c' +alias ts='tail /usr/spool/mqueue/syslog' +alias train='pd ~/wrk/mars/train' +typeset -fu namedir xvi pd setenv +cls() { clear; true } + +if [[ "$SHLVL" = 1 ]] +then + source .znewterm +fi