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

expand-and-quote-alias



Hi,

sometimes I want to not the whole alias. But expand-alias is useless,
because the expansion still uses the alias.

% alias ls='ls --color -lA'

I want it without -A

% ls<expand-alias>
% ls --color -lA

But this is

% ls --color -lA --color -lA

How can I do something like the following with one key, e.g. ^Xa

% ls<backward-word set-mark-command forward-word _expand-alias quote-region>
% 'ls --color -lA'

But, mhh, this is still not what I want. I want this:

% 'ls' --color -lA

How can I get it?

Bye, Jörg.
-- 
Computer Science is no more about Computers than astronomy is about
telescopes.
            (Edsger Wybe Dijkstra)



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