gruvbox icon indicating copy to clipboard operation
gruvbox copied to clipboard

Fish integration

Open krzkrzkrz opened this issue 9 years ago • 4 comments

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.

krzkrzkrz avatar Sep 21 '15 04:09 krzkrzkrz

Have you tried sourcing it directly from fish?

polyzen avatar Sep 21 '15 12:09 polyzen

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

krzkrzkrz avatar Sep 21 '15 15:09 krzkrzkrz

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.

Jomik avatar Mar 17 '18 21:03 Jomik

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

ranisalt avatar Jul 31 '18 02:07 ranisalt