From 71757f54dcd0f32ec705736c9ebe28e1ca1064be Mon Sep 17 00:00:00 2001 From: hjp Date: Sat, 21 Aug 1999 21:48:23 +0000 Subject: [PATCH] pd works now for numeric dirnames new function harden removed some obsolete aliases --- .znewterm | 4 ++-- .zshrc | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.znewterm b/.znewterm index 96be615..c0d6f19 100644 --- a/.znewterm +++ b/.znewterm @@ -2,9 +2,9 @@ # called both from .zlogin and .zshrc # default initialization -if [ -f /usr/local/lib/profile-parts/term ] +if [ -r /usr/local/lib/profile-parts/term ] then - . /usr/local/lib/profile-parts/term + . /usr/local/lib/profile-parts/term fi # terminal customization diff --git a/.zshrc b/.zshrc index 16672eb..edb988d 100644 --- a/.zshrc +++ b/.zshrc @@ -11,15 +11,10 @@ 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 -lFh' alias la='ls -alsF' -alias lc='ls -l *.c' -alias ts='tail /usr/spool/mqueue/syslog' -alias train='pd ~/wrk/mars/train' namedir(){ eval "$1=~+" @@ -33,7 +28,7 @@ pd(){ else pushd "$@" 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(){ @@ -41,6 +36,10 @@ setenv(){ export $1 } +harden(){ + cp -p "$1" .harden.$$ && mv .harden.$$ "$1" +} + cls() { clear; true } source ~/.znewterm