Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How to delete current directory



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