How to prevent the azure cloud shell to show directories in solid green?

122 views Asked by At

Please look at the following screenshot of my azure cloud shell:

enter image description here

I find the solid green coloring for directories very annoying and hard to read especially if you more directories other than the default "." and "..". Is there any way to adjust the shell to NOT color the directories?

1

There are 1 answers

4
Charles Xu On BEST ANSWER

You can take a look at the dircolors command, it's used to set up the color for command ls. And there are also different colors for different types of directories. So you need to take care of which type of the directory you want to change the color.

For example, the origin situation:

enter image description here

Then I change the OTHER_WRITABLE from 34;42 into 01;32 and it looks like this:

enter image description here

Note: Change it carefully and remember what does the color mean.

Update:

output the current setting:

dircolors -p > ~/.dircolors

Change the color as you need, here is an example:

enter image description here

Apply the new setting:

dircolors -b ~/.dircolors

Then open a new terminal, the new setting will be in use. Suggest you first backup before changing.