博客
关于我
Mac修改文件名的颜色
阅读量:191 次
发布时间:2019-02-28

本文共 637 字,大约阅读时间需要 2 分钟。

文章目录

前言

Mac中修改文件名颜色是通过LSCOLORS这个环境变量来控制的

文件类型

11种文件类型信息如下所示

序号 类型说明
1 目录
2 链接
3 socket文件
4 管道文件
5 可执行文件
6 块设备文件
7 字块设备文件
8 设定了suid的可执行文件
9 设定了guid的可执行文件
10 拥有sticky位的目录(组外用户拥有写权限)
11 没有sticky位的目录(组外用户拥有写权限)

LSCOLORS介绍

缺省状态下macOS的LSCOLORS的内容为exfxcxdxbxegedabagacad,简单来说又如下规则:

  • 每个字母代表一种颜色。
  • 一共22个字母,2个字母分为一组,所以分为11组,按照上面的表格的顺序依次定义了每种文件类型的颜色。
  • 一组颜色中,前面的字母代表前景色(即字体颜色),后面的字母代表背景色。

颜色

  • 大写字母的颜色代表粗体,小写代表普通类型
字母(小写) 颜色说明 字母(大写) 颜色说明
a 黑色 A 黑色粗体
b 红色 B 红色粗体
c 绿色 C 绿色粗体
d 棕色 D 棕色粗体
e 蓝色 E 蓝色粗体
f 洋红色 F 洋红色粗体
g 青色 G 青色粗体
h 浅灰色 H 浅灰色粗体
x 系统默认颜色

如何设置LSCOLORS环境变量

vim ~/.bash_profile	export LSCOLORS=GxFxCxDxBxegedabagacedsource ~/.bash_profile

那年,京城郭少。

转载地址:http://ccbj.baihongyu.com/

你可能感兴趣的文章
NN&DL4.1 Deep L-layer neural network简介
查看>>
NN&DL4.3 Getting your matrix dimensions right
查看>>
NN&DL4.7 Parameters vs Hyperparameters
查看>>
NN&DL4.8 What does this have to do with the brain?
查看>>
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>