Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to delete current directory
- X-seq: zsh-users 10507
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: How to delete current directory
- Date: Mon, 10 Jul 2006 16:14:09 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <Xns97F8725367A96zzappergmailcom@xxxxxxxxxxx> <44AD1F50.8010705@xxxxxxxxxxxxxxxxxx> <060706100353.ZM6522@xxxxxxxxxxxxxxxxxxxxxx> <Xns97F97C669D040zzappergmailcom@xxxxxxxxxxx> <060708113648.ZM8815@xxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote in news:060708113648.ZM8815
@torch.brasslantern.com:
> function lrm {
> setopt localoptions glob_dots no_rm_star_silent
> cd .. || return
> rm -rf $OLDPWD/* && rmdir $OLDPWD
> [[ ! -d $OLDPWD ]] || { cd $OLDPWD && return 1 }
> }
>
BS
That's cool displays directory name before you confirm delete
--
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author