oh-my-fish / theme-budspencer

A theme for nerds, makes fish even more powerful. It's equipped with a hell of a lot of nice functions and key bindings to speed up your workflow.
MIT License
106 stars 42 forks source link

Variables may not be used as commands. In fish, please define a function or use 'eval budspencer_colors[10]'. #37

Closed KhaledMohamedP closed 6 years ago

KhaledMohamedP commented 8 years ago

I get this error when I open my terminal?

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 110 of file /usr/local/share/fish/functions/__fish_config_interactive.fish

in function '__fish_config_interactive'
    called on line 137 of file /usr/local/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.
bobthecow commented 8 years ago

What's your Fish version?

amanulchowhury commented 8 years ago

I am getting the same error. My Fish version is 2.3.1

amanulchowhury commented 8 years ago

any resolution for this?

KhaledMohamedP commented 8 years ago

@bobthecow, What's your Fish version?
fish, version 2.2.0

drgr33n commented 8 years ago

Change fish_greeting.fish line 27 echo This is (set_color -b $budspencer_colors[2] to echo This is (set_color -b $budspencer_colors[2] \

douglascorrea commented 8 years ago

@drgr33n thanks, it worked for me

bitsofinfo commented 6 years ago

when will this be fixed!! I can fix it myself but every fisherman update restores the bug!

bashfulrobot commented 6 years ago

Just put in a PR to fix this. Hopefully, the author will merge.

bashfulrobot commented 6 years ago

sigh - likely to go unfixed. I just saw that there is another PR from October of 2016 that is still sitting open.

https://github.com/oh-my-fish/theme-budspencer/pull/41/commits/148858997059b71f37d6214b16d662bd151a766b

sagebind commented 6 years ago

Fixed by #52; thanks @bashfulrobot!

saldarriaga1879 commented 1 month ago

Change fish_greeting.fish line 27 echo This is (set_color -b $budspencer_colors[2] to echo This is (set_color -b $budspencer_colors[2] \

how to do it?????