Changed color mode of path to dim

This commit is contained in:
stephentoth 2024-02-27 05:28:17 -06:00
parent b2621a891f
commit 497686d3b1
1 changed files with 2 additions and 1 deletions

3
ls.py
View File

@ -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)