Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 24285  / 1 Year ago, thu, april 13, 2023, 1:50:27

When I execute command




ls




it displays files and folders. folders are typed in light blue. I would like to have xml files types in pink color.



How to do it?


More From » bash

 Answers
0

You can edit ~/.dircolors, if it doesn't exist you can create it with:



dircolors -p > ~/.dir_colors


As the example here shows, you can have this in your .bashrc:



eval `dircolors ~/.dir_colors`
alias ls="ls --color=auto"

[#41700] Saturday, April 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tonhorn

Total Points: 196
Total Questions: 118
Total Answers: 95

Location: Vanuatu
Member since Fri, May 13, 2022
2 Years ago
tonhorn questions
Tue, May 10, 22, 12:01, 2 Years ago
Sat, Dec 18, 21, 06:23, 2 Years ago
Thu, Jun 16, 22, 04:03, 2 Years ago
Fri, Apr 1, 22, 05:23, 2 Years ago
;