gruvbox
gruvbox copied to clipboard
Fish integration
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.
Have you tried sourcing it directly from fish?
Fish doesn't read bash. Unless you are suggesting a different approach
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.
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.