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

Re: Any Hints on showing ~-evaluation ?



> Hello,
> sometimes I use ~- or ~name in critical situations like
> rm -rf ~-
> 
> Before entering <Enter> I would like to see the evaluation of ~- or ~name.
> Is it possible to do with a keystroke?

The expand-word zle function should probably do this.  Unfortunately
expanding tilde substitutions is deliberately disabled since if one wants
to expand ~/$VAR she usually do not want to see her expanded home
directory but only wants to expand $VAR.  It is easy to change this
behaviour but what is the desired behaviour here?  E.g. expand everything
except ~/ or expand only ~+ and ~- etc.  Which do you prefer?

Bye,

Zoltan




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