Wowwww! works pretty good for me!!! Thanks a lot Glenn!

On Wed, Sep 16, 2015 at 9:22 AM, Glenn Jackman <jack...@pythian.com> wrote:

> I found this in this mailing list a few months back:
>
> function fish_user_key_bindings
>     bind ! bind_bang
>     bind '$' bind_dollar
> end
> function bind_bang
>     switch (commandline -t)[-1]
>     case "!"
>         commandline -t $history[1]; commandline -f repaint
>     case "*"
>         commandline -i !
>     end
> end
> function bind_dollar
>     switch (commandline -t)[-1]
>     case "!"
>         commandline -t ""
>         commandline -f history-token-search-backward
>     case "*"
>         commandline -i '$'
>     end
> end
>
>
>
> On Wed, Sep 16, 2015 at 7:30 AM, Jônatas Davi Paganini <
> jonata...@gmail.com> wrote:
>
>> Is there any way to use !$ to get the latest parameter used on the
>> previous expression?
>>
>> I can't find similar function on fishshell.
>>
>> I used it on every day. Like:
>>
>> vim my_big_file_name.txt
>> git add !$
>> git commit !$ -m "my new file"
>>
>>
>> --
>> atenciosamente,
>>
>> Jônatas Davi Paganini.
>>
>> --
>> [ *ideia.me <http://ideia.me> **eu* *invent.to <http://invent.to/>* ]
>> 46 9911 7879
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> Get real-time metrics from all of your servers, apps and tools
>> in one place.
>> SourceForge users - Click here to start your Free Trial of Datadog now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>> _______________________________________________
>> Fish-users mailing list
>> Fish-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fish-users
>>
>>
>
>
> --
> *Glenn Jackman*
> Senior Software Developer
>
> *Pythian - Love your data*
> jack...@pythian.com
> Tel: +1 613 565 8696 Ext. 1478
> Mobile: +1 613 808 4984
> www.pythian.com
>
> --
>
>
>
>


-- 
atenciosamente,

Jônatas Davi Paganini.

--
[ *ideia.me <http://ideia.me> **eu* *invent.to <http://invent.to/>* ]
46 9911 7879
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to