On Sun, Nov 28, 2010 at 2:12 AM, James Bowlin <[email protected]> wrote:
> I think the alt-p key binding that appends "|less" to the command
> line is cool and useful.  I wrote a little function that mimics
> this behavior to insert --help in the command line.  I bound it to
> alt-h with:
>
> bind \eh __fish_help_arg
>
> Here is the simple function:
>
> function __fish_help_arg
>        commandline -i -- --help
> end
>
> The reason I found this useful is because I'm lazy and I will always try
> -h first instead of --help.  Most of the time this works but when it
> fails it is a PITA.  Since alt-h is even easier for me to type I've been
> using that instead of -h.  This seems to streamline the discovery
> process.
>
> I've also added completion for funced (and my variations).  It is just
> one line:
>
> complete -c funced -xa "(functions -na)" --description "Function"
>

That seems COOL! ;) As it is something new, should this go into fish-next?

-- 
Cheers,
Grissiom

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to