Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Any Hints on showing ~-evaluation ?
- X-seq: zsh-users 198
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: jarausch@xxxxxxxxxxxxxxxxxxx (Helmut Jarausch)
- Subject: Re: Any Hints on showing ~-evaluation ?
- Date: Fri, 3 May 1996 17:56:15 +0200 (MET DST)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <199605031231.OAA05151@xxxxxxxxxxxxxxxxxxx> from Helmut Jarausch at "May 3, 96 02:31:51 pm"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
> 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