From 27f6d411b725d0d40a8757a63fd17d966a7ffbf5 Mon Sep 17 00:00:00 2001 From: cswimr Date: Mon, 2 Dec 2024 15:52:08 -0500 Subject: [PATCH] fix the `c` (`clear`) alias being shadowed by the color module --- config/xonsh/aliases.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/xonsh/aliases.py b/config/xonsh/aliases.py index 9d6188b..22e0494 100644 --- a/config/xonsh/aliases.py +++ b/config/xonsh/aliases.py @@ -137,8 +137,7 @@ if script_path.exists(): if sub_dir.name == "nix": continue if not sub_dir.is_dir(): - c = colors.Colors - print(f"{c.YELLOW}{c.BOLD}WARNING: The path {c.PURPLE}'{sub_dir}'{c.YELLOW} is not a directory. Skipping alias creation for this path.{c.END}") + print(f"{colors.Colors.YELLOW}{colors.Colors.BOLD}WARNING: The path {colors.Colors.PURPLE}'{sub_dir}'{colors.Colors.YELLOW} is not a directory. Skipping alias creation for this path.{colors.Colors.END}") continue extension = f".{sub_dir.name}"