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

Re: How to delete current directory



Bart Schaefer wrote:
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.

cd failed ? all right : don't use lrm in / ! ;)



Messages sorted by: Reverse Date, Date, Thread, Author