我正在尝试在我的鱼壳中安装Budspencer主题。但是在做的时候,我不断收到以下错误
Last login: Sun Oct 2 19:55:45 on ttys000
Variables may not be used as commands. In fish, please define a function or use 'eval $budspencer_colors[10]'.
~/.local/share/omf/themes/budspencer/fish_greeting.fish (line 2): $budspencer_colors[10]
^
in command substitution
called on line 19 of file ~/.local/share/omf/themes/budspencer/fish_greeting.fish
in function 'fish_greeting'
called on line 123 of file /usr/local/Cellar/fish/HEAD-53f1eba/share/fish/functions/__fish_config_interactive.fish
in function '__fish_config_interactive'
called on line 180 of file /usr/local/Cellar/fish/HEAD-53f1eba/share/fish/config.fish
in function '__fish_on_interactive'
called on standard input
in event handler: handler for generic event 'fish_prompt'
This is budspencer theme for fish, a theme for nerds.
Type »budspencer_help« in order to see how you can speed up your workflow.
1 ✔
我尝试了Budspencer对OSX用户的建议,但这并没有解决我的问题:
brew install --with-default-names gnu-sed
答案 0 :(得分:2)
我在这里找到答案:https://github.com/oh-my-fish/theme-budspencer/issues/37
更改fish_greeting.fish第27行
echo This is (set_color -b $budspencer_colors[2]
到
echo This is (set_color -b $budspencer_colors[2] \