From 8c5c22551b53b02e15f75a7cdb5535eac52d7202 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Fri, 5 Nov 2021 17:50:01 -0700 Subject: [PATCH] Change Xonsh style to make numbers more visible --- xonsh/rc.xsh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/xonsh/rc.xsh b/xonsh/rc.xsh index 0d33460..750901d 100644 --- a/xonsh/rc.xsh +++ b/xonsh/rc.xsh @@ -97,6 +97,19 @@ else: "{#5E6470}\ue0b1 {BLUE}{short_cwd} {DEFAULT}{env_name}{RESET}{#2E3440}\ue0b0\n" \ "{RESET}{INTENSE_GREEN}{prompt_end}{RESET} " +# Color style to fix unreadable greys +from xonsh.tools import register_custom_style +ttm_style = { + # Put custom overrides here + # Discover list of styles by running "xonfig colors default" + # Discover default mappings by cross referencing + # https://github.com/xonsh/xonsh/blob/main/xonsh/style_tools.py + # and + # https://github.com/pygments/pygments/blob/master/pygments/styles/native.py +} +register_custom_style("ttm-style", ttm_style, base="native") +$XONSH_COLOR_STYLE = "ttm-style" + # autojump equivalent if shutil.which("zoxide"): execx($(zoxide init xonsh --cmd j --hook prompt), 'exec', __xonsh__.ctx, filename='zoxide')