如何在`ls -color`输出中删除dir背景 [英] How to remove dir background in `ls -color` output

查看:70
本文介绍了如何在`ls -color`输出中删除dir背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用默认的Linux Mint .bashrc,这里是完整的bashrc ,输出类似于:

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

某个目录具有绿色背景,如何将其删除?

some dir has green background, How to remove it?

推荐答案

要删除所有背景色,请将以下内容粘贴到〜/.bashrc中:

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)"

这篇关于如何在`ls -color`输出中删除dir背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆