umayr / theme-sushi

Sushi theme for Fishshell.
MIT License
23 stars 20 forks source link

Fix theme outside of omf #6

Closed skeet70 closed 5 years ago

skeet70 commented 5 years ago

Installed the theme with fisherman and ran into a few errors like this:

~/.config/fish/functions/fish_right_prompt.fish (line 1):
git_is_repo; and begin
^
in function 'git::branch_name'
    called on line 2 of file ~/.config/fish/functions/fish_prompt.fish

in command substitution
    called on line 0 of file ~/.config/fish/functions/fish_prompt.fish

in function 'fish_prompt'
    called on standard input

I assume it's still working fine for people that installed with omf since they provide that function, but I noticed you had already copied over the function and named it git::is_repo. Most of the other calls had been switched over to your own namespace, so I just made that switch as well. Works for now now after an install with fisher.