1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-25 04:51:31 +01:00
dotfiles/pdbrc.py

26 lines
585 B
Python

import os
import pdb
from pygments.styles import get_style_by_name
if os.getenv("THEME_PREFER_LIGHT"):
pygments_style = "gruvbox-light"
else:
pygments_style = "gruvbox-dark"
class Config(pdb.DefaultConfig):
# prompt = "(Pdb++) "
use_pygments = True
pygments_formatter_class = "pygments.formatters.TerminalTrueColorFormatter"
pygments_formatter_kwargs = {"style": get_style_by_name(pygments_style)}
editor = "vim"
if __name__ == "__main__":
from pygments.styles import get_all_styles
all_styles = get_all_styles()
print(list(all_styles))