Defined all functions in .zshrc now.

This commit is contained in:
hjp 1995-07-27 08:20:11 +00:00
parent cd29b12482
commit 0567272913
1 changed files with 21 additions and 1 deletions

22
.zshrc
View File

@ -19,7 +19,27 @@ 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
namedir(){
$1=~+
: ~$1
}
pd(){
if [[ $# = 0 ]]
then
pushd +1
else
pushd "$@"
fi
namedir `basename $PWD | tr -cd 'A-Za-z0-9'`
}
setenv(){
$1=$2
export $1
}
cls() { clear; true }
if [[ "$SHLVL" = 1 ]]