Skip to content

I'm trying to set theme for fish but it show some bugs #9423

Closed Answered by faho
datsfilipe asked this question in Q&A
Discussion options

You must be logged in to vote

Is your gruvbox theme this one? It works by telling your terminal to change its palette colors. And it appears that your vim then sets the palette again, which would end up also changing it in fish. You would have to reset the palette after every command, e.g. by using the fish_postexec event:

function reset_theme --on-event fish_postexec
    # Load fish theme configuration
    switch "$THEME" # (your `echo` here was superfluous)
      case "gruvbox"
       source ~/.config/fish/conf.d/gruvbox.fish
      case "tokyonight"
       source ~/.config/fish/conf.d/tokyonight.fish
    end
end

All around this is an extremely fickle way of setting a colorscheme and not one I recommend. Do something…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@datsfilipe
Comment options

Answer selected by datsfilipe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants