morhetz / gruvbox

Retro groove color scheme for Vim
13.78k stars 1.1k forks source link

Fish integration #76

Open krzkrzkrz opened 9 years ago

krzkrzkrz commented 9 years ago

Not sure where to put this. I use this theme a lot and recently changed my shell to Fish (http://fishshell.com/).

Since gruvbox_256palette.sh is a bash script. You can still load it in Fish via:

# ~/.config/fish/config.fish
# Modify the terminal's 256 color palette to use the gruvbox theme
set -l GRUVBOX_SCRIPT ~/.vim/bundle/gruvbox/gruvbox_256palette.sh
if test -f $GRUVBOX_SCRIPT
  bash $GRUVBOX_SCRIPT
end

You end up with the right (non washed-up colors). Hope this helps someone.

polyzen commented 9 years ago

Have you tried sourcing it directly from fish?

krzkrzkrz commented 9 years ago

Fish doesn't read bash. Unless you are suggesting a different approach

Jomik commented 6 years ago

I did a pretty basic integration here. This will override your terminals background and foreground, using escape codes. Some are taken from the gruvbox_256palette.sh, the colors 0-15 was input as well. https://github.com/Jomik/fish-gruvbox

Currently doesn't support the various terminals that the gruvbox_256palette.sh script checks for, as I don't really know the purpose, etc. I accept PRs though.

ranisalt commented 6 years ago

While it seems to me that fish uses colors from .Xresources, I converted the bash script that comes with gruvbox to fish syntax. It's not as complete as @Jomik did though, but maybe I can PR here.

gruvbox_256palette.fish