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

Re: implicit previous command, only state what should change



Emanuel Berg wrote:
> $ grep user-home-directory *.el
>
> After that, I realize that it should have been
> `user-emacs-directory'.
>
> Is there a way to tell zsh to "execute the previous
> command again, only substitute the first argument for
> user-emacs-directory"? Like
>
> $ !!:1->user-emacs-directory

Like this:

% ^-home-^-emacs-


Regards, Frank



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