0

我正在尝试在我的鱼壳中安装 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
4

1 回答 1

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] \
于 2016-10-03T03:13:06.927 回答