美文网首页
Mac 文件夹高亮

Mac 文件夹高亮

作者: 我想回精神病院住 | 来源:发表于2018-11-26 23:38 被阅读0次

    颜色高亮:

    编辑 ~/.bash_profile, 加入以下代码:

    export CLICOLOR=1
    export LSCOLORS=gxfxaxdxcxegedabagacad

    CLICOLOR: 前景色和背景色的字符串合并值
    LSCOLORS: 对于不同变量所采用的颜色方案,具体看如下表格:
    a black
    b red
    c green
    d brown
    e blue
    f magenta
    g cyan
    h light grey
    A bold black, usually shows up as dark grey
    B bold red
    C bold green
    D bold brown, usually shows up as yellow
    E bold blue
    F bold magenta
    G bold cyan
    H bold light grey; looks like bright white
    x default foreground or background
    而文件类型列表如下:

    1. directory
    2. symbolic link
    3. socket
    4. pipe
    5. executable
    6. block special
    7. character special
    8. executable with setuid bit set
    9. executable with setgid bit set
    10. directory writable to others, with sticky bit
    11. directory writable to others, without sticky
      所以对照这张表就可以得知:

    相关文章

      网友评论

          本文标题:Mac 文件夹高亮

          本文链接:https://www.haomeiwen.com/subject/zitaxqtx.html