尝试为鱼壳安装budspencer主题时出错

时间:2014-09-16 18:57:29

标签: shell fish

我的鱼conf(.config / fish / config.fish)

set -e fish_key_bindings
set -U fish_key_bindings fish_vi_key_bindings
set fish_path $HOME/.oh-my-fish
set fish_theme budspencer
. $fish_path/oh-my-fish.fish

导致错误:https://gist.github.com/LuizCarvalho/925de989c306828a410a

如果我删除主题并设置结果:

  desenvolvimento@dp-inf015:~$ fish
  Welcome to fish, the friendly interactive shell
  Type help for instructions on how to use fish
  fish: Unknown command “fish_vi_key_bindings”
  Standard input: begin; fish_vi_key_bindings ;end 
                         ^
  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 108 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”

如果我卸载鱼,哦我的鱼和所有文件conf并重新安装,错误不断发生... 我怎么解决这个问题?

1 个答案:

答案 0 :(得分:3)

vi绑定即将发布,但尚未公开发布。这就是你得到错误的原因。

如果你想让vi绑定工作并且愿意生活在边缘,你可以从trunk安装最新的鱼。如果您使用自制程序,请运行brew install fish --HEAD。或者如果你喜欢用老式的方式做,那就是build instructions here

或者,如果您可以理解地希望继续使用最新的公开发布,则应从config.fish中删除fish_vi_key_bindings行。