dot/.zshrc

56 lines
736 B
Bash

umask 022
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 fixsz='set noglob; eval `resize`;unset noglob'
alias ls='ls -F'
if ls -hld > /dev/null 2>/dev/null
then
alias ll='ls -lFh'
else
alias ll='ls -lF'
fi
alias la='ls -alsF'
alias cup='cvs -q update -d -P'
namedir(){
eval "$1=~+"
: ~$1
}
pd(){
if [[ $# = 0 ]]
then
pushd +1
else
pushd "$@"
fi
namedir `basename $PWD | tr -cd 'A-Za-z0-9_' | sed -e 's/^[0-9]/_&/'`
}
setenv(){
$1=$2
export $1
}
harden(){
cp -p "$1" .harden.$$ && mv .harden.$$ "$1"
}
dup(){
mv $1 $1.orig && cp -p $1.orig $1
}
cls() { clear; true }
source ~/.znewterm