Changed color mode of path to dim
This commit is contained in:
parent
b2621a891f
commit
497686d3b1
3
ls.py
3
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue