funtoo
deepin
2018-12-20 23:06 deepin默认把ls的别名设置为ls --color=auto了,这就导致输出强制自动着色,改一下别名设置就可以了Copy the Code
- alias ls='ls --color'
Reply Like 0 View the author
https://bbs.deepin.org/post/172673
deepin默认把ls的别名设置为ls --color=auto了,这就导致输出强制自动着色,改一下别名设置就可以了 ...
Popular Ranking
ChangePopular Events
More
LS_COLORS='no=00:fi=00:di=01;33:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01
1;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32
:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;3
1:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm
=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:'
export LS_COLORS
然后source ~/.bashrc
echo $LS_COLORS
得到
bd=38;5;68;1:ca=38;5;17:cd=38;5;132;1:di=38;5;105:do=38;5;127:ex=38;5;80:pi=38;5;126:fi=38;5;167:ln=38;5;63:mh=38;5;99;1
这是为什么?