Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
KhaledMohamedP opened this issue Jul 10, 2016 · 10 comments

Comments

@KhaledMohamedP
Copy link

KhaledMohamedP commented Jul 10, 2016

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
Copy link
Member

What's your Fish version?

@amanulchowhury
Copy link

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

@amanulchowhury
Copy link

any resolution for this?

@KhaledMohamedP
Copy link
Author

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

@drgr33n
Copy link

drgr33n commented Aug 17, 2016

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
Copy link

@drgr33n thanks, it worked for me

@igorescobar igorescobar mentioned this issue Oct 17, 2016
@bitsofinfo
Copy link

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

@bashfulrobot
Copy link
Contributor

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

@bashfulrobot
Copy link
Contributor

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

1488589

sagebind added a commit that referenced this issue Mar 6, 2018
@sagebind
Copy link
Member

sagebind commented Mar 6, 2018

Fixed by #52; thanks @bashfulrobot!

@sagebind sagebind closed this as completed Mar 6, 2018
mcgrathg pushed a commit to mcgrathg/theme-budspencer that referenced this issue May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants