How to remove dir background in `ls -color` output

前端 未结 4 1469
情深已故
情深已故 2020-12-29 10:35

I use default Linux Mint .bashrc, here is full bashrc, the output is like:

some dir has green background, How to remove it?

4条回答
  •  生来不讨喜
    2020-12-29 10:51

    To remove all background colors, stick the following into your ~/.bashrc :

    eval "$(dircolors -p | \
        sed 's/ 4[0-9];/ 01;/; s/;4[0-9];/;01;/g; s/;4[0-9] /;01 /' | \
        dircolors /dev/stdin)"
    

提交回复
热议问题