Fish 一直尝试使用 fish_vi_key_bindings,尽管它已不在 config.fish 中
Fish keeps trying to use fish_vi_key_bindings although it is not in config.fish anymore
我正在 cygwin 终端上玩鱼和我的鱼。它工作正常,直到我尝试通过在 config.fish
.
中设置 fish_vi_key_bindings
来打开 VI 键绑定
没用。显然这只适用于 2.2.x
版本,而在 cygwin 上我是 运行 版本 2.1.1
。好的,没问题...让我们通过从 config.fish
中删除该行来停用它。当前此文件如下所示:
# 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'
但是无论如何,当我启动 fish 控制台时,我收到以下消息:
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'
而 shell 完全不正常。我无法删除我写的内容,自动完成功能不起作用,等等。有什么帮助吗?谢谢。
您可能将通用变量 $fish_key_bindings
设置为您不想要的内容。尝试 运行 这个(一次):
set -U fish_key_bindings fish_default_key_bindings
我正在 cygwin 终端上玩鱼和我的鱼。它工作正常,直到我尝试通过在 config.fish
.
fish_vi_key_bindings
来打开 VI 键绑定
没用。显然这只适用于 2.2.x
版本,而在 cygwin 上我是 运行 版本 2.1.1
。好的,没问题...让我们通过从 config.fish
中删除该行来停用它。当前此文件如下所示:
# 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'
但是无论如何,当我启动 fish 控制台时,我收到以下消息:
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'
而 shell 完全不正常。我无法删除我写的内容,自动完成功能不起作用,等等。有什么帮助吗?谢谢。
您可能将通用变量 $fish_key_bindings
设置为您不想要的内容。尝试 运行 这个(一次):
set -U fish_key_bindings fish_default_key_bindings