From 497686d3b18f4330b25a54e4434d716d7f76b488 Mon Sep 17 00:00:00 2001 From: stephentoth Date: Tue, 27 Feb 2024 05:28:17 -0600 Subject: [PATCH] Changed color mode of path to dim --- ls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ls.py b/ls.py index 53bd26c..9d25c37 100755 --- a/ls.py +++ b/ls.py @@ -13,6 +13,7 @@ import functools COLORS = { 'RESET': '\033[0m', 'BOLD': '\033[1m', + 'DIM': '\033[2m', 'RED': '\033[91m', 'GREEN': '\033[92m', 'YELLOW': '\033[93m', @@ -41,7 +42,7 @@ def gen_color_file_string(filepath, mode): path, file = os.path.split(filepath) perms = parse_permissions(mode) color = perms['color'] - filestring = f"{path and path+'/'}{colorize(file, color)}" + filestring = f"{path and colorize(path+'/', 'DIM')}{colorize(file, color)}" # dircolors var? if perms['char'] == 'l': pointfile = os.readlink(filepath)