Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to delete current directory
- X-seq: zsh-users 10483
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: How to delete current directory
- Date: Thu, 06 Jul 2006 10:03:53 -0700
- In-reply-to: <44AD1F50.8010705@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns97F8725367A96zzappergmailcom@xxxxxxxxxxx> <44AD1F50.8010705@xxxxxxxxxxxxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author