From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29598 invoked by alias); 13 Jul 2014 22:33:54 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32857 Received: (qmail 29947 invoked from network); 13 Jul 2014 22:33:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 From: Frank Terbeck To: zsh-workers@zsh.org Subject: Re: implicit previous command, only state what should change In-Reply-To: <874myk3ocp.fsf@debian.uxu> (Emanuel Berg's message of "Mon, 14 Jul 2014 00:06:46 +0200") References: <874myk3ocp.fsf@debian.uxu> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Date: Mon, 14 Jul 2014 00:24:07 +0200 Message-ID: <87sim4lwxk.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: NDMwNDQ0 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