1996-07-14 20:57:01 +02:00
|
|
|
umask 022
|
1995-06-02 12:48:24 +02:00
|
|
|
bindkey -v
|
|
|
|
|
2004-11-16 09:39:54 +01:00
|
|
|
REPORTTIME=1
|
|
|
|
|
1995-06-02 12:48:24 +02:00
|
|
|
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 fixsz='set noglob; eval `resize`;unset noglob'
|
|
|
|
alias ls='ls -F'
|
1999-10-12 22:15:43 +02:00
|
|
|
if ls -hld > /dev/null 2>/dev/null
|
|
|
|
then
|
|
|
|
alias ll='ls -lFh'
|
|
|
|
else
|
|
|
|
alias ll='ls -lF'
|
|
|
|
fi
|
1995-06-02 12:48:24 +02:00
|
|
|
alias la='ls -alsF'
|
1999-08-30 09:48:41 +02:00
|
|
|
alias cup='cvs -q update -d -P'
|
2005-12-20 20:37:38 +01:00
|
|
|
alias digs='dig +nocomments +nostats +nocmd'
|
1995-07-27 10:20:11 +02:00
|
|
|
|
|
|
|
namedir(){
|
1997-07-19 15:40:36 +02:00
|
|
|
eval "$1=~+"
|
1995-07-27 10:20:11 +02:00
|
|
|
: ~$1
|
|
|
|
}
|
|
|
|
|
|
|
|
pd(){
|
|
|
|
if [[ $# = 0 ]]
|
|
|
|
then
|
|
|
|
pushd +1
|
|
|
|
else
|
|
|
|
pushd "$@"
|
|
|
|
fi
|
2004-03-26 09:21:23 +01:00
|
|
|
namedir $(echo $(basename $PWD | tr -cd 'A-Za-z0-9_') | sed -e 's/^[0-9]/_&/')
|
1995-07-27 10:20:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
setenv(){
|
|
|
|
$1=$2
|
|
|
|
export $1
|
|
|
|
}
|
|
|
|
|
1999-08-21 23:48:23 +02:00
|
|
|
harden(){
|
|
|
|
cp -p "$1" .harden.$$ && mv .harden.$$ "$1"
|
|
|
|
}
|
|
|
|
|
2001-05-01 20:17:39 +02:00
|
|
|
dup(){
|
|
|
|
mv $1 $1.orig && cp -p $1.orig $1
|
|
|
|
}
|
|
|
|
|
1995-06-02 12:48:24 +02:00
|
|
|
cls() { clear; true }
|
|
|
|
|
1997-07-25 00:02:10 +02:00
|
|
|
source ~/.znewterm
|
2004-04-23 22:33:05 +02:00
|
|
|
|
2004-06-22 12:03:03 +02:00
|
|
|
# assume pseudo terminals are from a "safe" terminal
|
|
|
|
# other terminals are probably from a console and should
|
|
|
|
# auto-logout after some time.
|
|
|
|
case `tty` in
|
|
|
|
/dev/pts/*)
|
2004-10-25 12:54:21 +02:00
|
|
|
TMOUT=14400
|
2004-06-22 12:03:03 +02:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
TMOUT=3600
|
|
|
|
esac
|