pd works now for numeric dirnames

new function harden
removed some obsolete aliases
This commit is contained in:
hjp 1999-08-21 21:48:23 +00:00
parent b278bf911f
commit 71757f54dc
2 changed files with 7 additions and 8 deletions

View File

@ -2,9 +2,9 @@
# called both from .zlogin and .zshrc # called both from .zlogin and .zshrc
# default initialization # default initialization
if [ -f /usr/local/lib/profile-parts/term ] if [ -r /usr/local/lib/profile-parts/term ]
then then
. /usr/local/lib/profile-parts/term . /usr/local/lib/profile-parts/term
fi fi
# terminal customization # terminal customization

11
.zshrc
View File

@ -11,15 +11,10 @@ alias lo=logout
alias md=mkdir alias md=mkdir
alias pop=popd alias pop=popd
alias rd=rmdir 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 fixsz='set noglob; eval `resize`;unset noglob'
alias ls='ls -F' alias ls='ls -F'
alias ll='ls -lFh' alias ll='ls -lFh'
alias la='ls -alsF' alias la='ls -alsF'
alias lc='ls -l *.c'
alias ts='tail /usr/spool/mqueue/syslog'
alias train='pd ~/wrk/mars/train'
namedir(){ namedir(){
eval "$1=~+" eval "$1=~+"
@ -33,7 +28,7 @@ pd(){
else else
pushd "$@" pushd "$@"
fi fi
namedir `basename $PWD | tr -cd 'A-Za-z0-9'` namedir `basename $PWD | tr -cd 'A-Za-z0-9_' | sed -e 's/^[0-9]/_&/'`
} }
setenv(){ setenv(){
@ -41,6 +36,10 @@ setenv(){
export $1 export $1
} }
harden(){
cp -p "$1" .harden.$$ && mv .harden.$$ "$1"
}
cls() { clear; true } cls() { clear; true }
source ~/.znewterm source ~/.znewterm