Skip to content

Instantly share code, notes, and snippets.

@jzztf
Created September 27, 2019 07:31
Show Gist options
  • Save jzztf/6ba768bbbc244bfb0de1c83e030c4a6b to your computer and use it in GitHub Desktop.
Save jzztf/6ba768bbbc244bfb0de1c83e030c4a6b to your computer and use it in GitHub Desktop.
linux如何去掉目录背景颜色

原文链接:https://blog.csdn.net/weixin_41010198/article/details/88816329

linux如何去掉目录背景颜色

由于用户权限的问题,文件夹在“ls”命令下,看起来很不美观

# 01表示改成粗体,34表示蓝色
echo "OTHER_WRITABLE 01;34" >> $HOME/.dir_colors
# 将以下命令加入‘.bashrc’或‘.zshrc’
eval `dircolors $HOME/.dir_colors`
# 使其生效
source .bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment