I'm trying to define a key binding in my configuration. The only thing
mentioned in the documentation is to use the "bind" command. But if
you do that in my user "config.fish" or "config_interactive", it does
not take effect.
It only works if I define a new function that calls function
"fish_default_key_bindings" and sets any additional bindings:
function my_key_bindings
eval fish_default_key_bindings
bind \e\[3~ delete-char
end
Then the function has to be invoked by setting the universal variable
"fish_key_bindings", say in your "config_interactive":
set -U fish_key_bindings my_key_bindings
If you do not eval fish_default_key_bindings and do not define the
right bindings, the shell becomes unusable. You have to log in as
another user whose default shell is not Fish, to fix the problem, if
you know how. Is there a simpler and safer way? You should be able
to just call "bind" in "config_interactive" to modify the default
bindings.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users