On 8/30/06, Martin Bähr <[EMAIL PROTECTED]> wrote:
> hi,
>
> i have been experimenting with keybindings and i found that while it is
> nice how functions are automaticly updated in all shells, keybindings
> need to be manually added to each one.

Yes.

>
> is there a way to signal fish to reread the .fish_inputrc?
> preferably via fishd so that all shells get this?

The 'bind' builtin can be used to read a simple inputrc-file using
something like

for i in (cat ~/.inputrc); bind $i; end

though that will probably break on conditionals.

You could add an event handler to a universal variable, and perform
the above in the handler, and then assign to the variable to reread
the inputrc-file, but it's a bit kludgy, to say the least.

>
> or even nicer would be to give the bind builtin an -U argument which
> would have this effect. (as well as automaticly adding it to a file
> from where it will be picked up on restart, just like universal
> variables.

There should be no reason why this shouldn't be on at all times, as
near as I can tell. (i.e. fish could simply occasionally check the
inputrc file for updates) That will be a bit of work, but not
impossible. I'll add it to the todo-list.

Though I still sometimes consider dropping the inputrc-support and
implement key bindings as event handlers.

>
> greetings, martin.
> --
> cooperative communication with sTeam      -     caudium, pike, roxen and unix
> offering: programming, training and administration   -  anywhere in the world
> --
> pike programmer   travelling and working in europe             open-steam.org
> unix system-      bahai.or.at                        iaeste.(tuwien.ac|or).at
> administrator     (caudium|gotpike).org                          is.schon.org
> Martin Bähr       http://www.iaeste.or.at/~mbaehr/
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>


-- 
Axel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to