Set terminal colors based on selected xonsh theme.
If you like the idea click ⭐ on the repo and tweet.
To install use pip:
xpip install xontrib-termcolors
# or: xpip install -U git+https://github.com/dyuri/xontrib-termcolorsThis xontrib sets the colors of your terminal based on your xonsh theme.
$ xontrib load termcolors
$ termcolorsThe main 16 colors will be used directly from the pygments/ptk theme. The following special colors can be set by adding the tokens to your theme:
Token.Terminal.Foreground- foreground colorToken.Terminal.Background- background colorToken.Terminal.Curson- cursor color
termcolors command cannot be used in .xonshrc currently, it needs a working shell instance to get the theme.
This package was created with xontrib cookiecutter template.