zoukankan      html  css  js  c++  java
  • Ubuntu terminal colors

    Today I run ubuntu docker image on powershell and find the directory color is blue, so I want to change it.

    Step 1:

    set ubuntu proxy:

    export http_proxy=http://xx:80 not http_proxy=xx:80 otherwise it will give error

    export https_proxy=https://xx:80

    Step 2:

    change color 

    method 1:

    dircolors -p > .dircolors

    vim .dircolors

    DIR 01;34 -> DIR 01;35

    save and exit 

    then . .bashrc

     method 2:

     export LS_COLORS=$LS_COLORS:'di=0;97:'

    样式参数参考:

    这里的01表示高亮度显示,34表示蓝色,35表示洋红色
    00 — Normal (no color, no bold) 
    01 — Bold    //粗体
    文字颜色 
    30 — Black      //黑色
    31 — Red         //红色
    32 — Green      //绿色
    33 — Yellow      //黄色
    34 — Blue         //蓝色
    35 — Magenta  //洋红色
    36 — Cyan       //蓝绿色
    37 — White      //白色
    

    背景颜色

    40 — Black 
    41 — Red 
    42 — Green 
    43 — Yellow 
    44 — Blue 
    45 — Magenta 
    46 — Cyan 
    47 – White
    

    默认颜色所代表的的文件类型说明:

    白色:    表示普通文件
    蓝色:    表示目录
    绿色:    表示可执行文件
    红色:    表示压缩文件
    蓝绿色:  链接文件
    红色闪烁:表示链接的文件有问题
    黄色:    表示设备文件
    灰色:    表示其他文件
    Another config for vim:
    vim .vimrc

    syntax on
    colorscheme koehler
    set ts=4

     
  • 相关阅读:
    标准函数头部注释
    排序
    #define _INTSIZEOF(n)
    并发编程资料
    memory model
    Ubuntu搜狗输入法的使用
    gprof
    xml_editor
    创建本地Ubuntu镜像
    设计模式9:建造者模式
  • 原文地址:https://www.cnblogs.com/seeken/p/10678727.html
Copyright © 2011-2022 走看看