Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to delete current directory
- X-seq: zsh-users 10488
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: How to delete current directory
- Date: Fri, 7 Jul 2006 11:13:53 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <Xns97F8725367A96zzappergmailcom@xxxxxxxxxxx> <44AD1F50.8010705@xxxxxxxxxxxxxxxxxx> <060706100353.ZM6522@xxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote in
news:060706100353.ZM6522@xxxxxxxxxxxxxxxxxxxxxx:
> On Jul 6, 4:33pm, Marc Chantreux wrote:
> }
> } alias lrm='cd ..; rm -rf $OLDPWD'
>
> I'd suggest a small change:
>
> alias ;rm='cd .. && rm -rf $OLDPWD'
>
> If for any reason the "cd" were to fail, unlikely as that may be, you
> wouldn't want to rm the wrong $OLDPWD.
>
>
Is there are mechanism in zsh which will allow the rm -r to start off in
confirm mode ie "do you want to delete this file" and then choose "all"??
--
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author