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

Re: Request for a hint



In article <zsh-list.199604260955.LAA00962@xxxxxxxxxxxxxxxxxxx>,
Helmut Jarausch <jarausch@xxxxxxxxxxxxxxxxxxx> wrote:
>Hi all,
>can anybody give me a hint for doing the following in zsh - probably it's easy.
>
>Sometimes I do a very critical command using e.g.  ~-  or  ~WORK  like
>rm -rf ~-
>
>Before executing this command I would like to see the expansion of it
>(show me, what ~- really is)
>
>Is this possible with a keystroke?

I have the following binding:
bindkey    '^G' list-expand

It's very useful to see the expansion of anything, like ~-, file*glob,
$PARAM, etc. You'll never erase the wrong file again!

- Huy




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