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:060708113648.ZM8815
@torch.brasslantern.com:

> function lrm {
>         setopt localoptions glob_dots no_rm_star_silent
>         cd .. || return
>      rm -rf $OLDPWD/* && rmdir $OLDPWD
>      [[ ! -d $OLDPWD ]] || { cd $OLDPWD && return 1 }
>     }
> 
BS
That's cool displays directory name before you confirm delete


-- 
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips



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