6
我正在cygwin終端上玩魚和oh-my-fish。它工作正常,直到我試圖通過在我的config.fish
中設置fish_vi_key_bindings
來打開VI密鑰綁定。魚不斷嘗試使用fish_vi_key_bindings,雖然它不再是config.fish
它沒有工作。顯然這隻適用於版本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'
但無論如何,當我開始魚控制檯,我得到以下信息:
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'
和外殼missbehaves完全。我無法刪除我寫的內容,自動完成功能無法工作等等。有什麼幫助?謝謝。
幹得好,先生!one11! – bgusach