The fish continues to try to use fish_vi_key_bindings, although it is no longer in config.fish

I play with fish and about-my fish at the cygwin terminal. It worked fine until I tried to enable VI key bindings by setting fish_vi_key_bindings in my config.fish .

This did not work. Apparently this only works with version 2.2.x on, and on cygwin I am running version 2.1.1 . Ok, no problem ... deactivate it by deleting this line from config.fish . Currently, this file is as follows:

 # Path to your oh-my-fish. set fish_path $HOME/.oh-my-fish # Path to your custom folder (default path is ~/.oh-my-fish/custom) #set fish_custom $HOME/dotfiles/oh-my-fish # Load oh-my-fish configuration. . $fish_path/oh-my-fish.fish # Custom plugins and themes may be added to ~/.oh-my-fish/custom # Plugins and themes can be found at https://github.com/oh-my-fish/ Theme 'robbyrussell' Plugin 'theme' 

But anyway, when I start the fish console, I get the following message:

 Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish Standard input: begin; fish_vi_key_bindings ^ in . (source) call of file '-', called on standard input, in function '__fish_reload_key_bindings', called on line 209 of file '/usr/share/fish/functions/__fish_config_interactive.fish', in function '__fish_config_interactive', called on line 114 of file '/usr/share/fish/config.fish', in function '__fish_on_interactive', called on standard input, in event handler: handler for generic event 'fish_prompt' 

And the shell will skip completely. I cannot delete what I am writing, autocomplete does not work, etc. Any help? thanks.

+6
source share
1 answer

You probably have a generic variable $fish_key_bindings that you don't want. Try to run this (only once):

 set -U fish_key_bindings fish_default_key_bindings 
+11
source

All Articles