Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color input even if it has spaces at the beginning and end #74

Open
nkh opened this issue Aug 22, 2023 · 0 comments
Open

color input even if it has spaces at the beginning and end #74

nkh opened this issue Aug 22, 2023 · 0 comments

Comments

@nkh
Copy link

nkh commented Aug 22, 2023

if an input line has spaces the directory will not be colorized even if it's a valid directory

this would make it possible to colorize the output of a tool that generated directories indented, I discovered this while looking for a duplicates on my machine and hope that the large blob of files could be made more palatable by lscolors; it worked for the file and I scripted the rest but it would be nice if lscolors did it and I doubt that many people have real paths that start with space

    echo -e "\t/home/a.txt\n/home/a.txt" | lscolors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant