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

Re: How to delete current directory



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