zoukankan      html  css  js  c++  java
  • cygwin 的不同文件类型显示不同的颜色

    正常情况下,我们的cygwin安装好之后,不管是文件还是文件夹显示的颜色都是一样的,这样在我们平时的工作中很不方便

    所以这里记录一下怎么设置成彩色的,其实很简单。

    直接修改文件 .bashrc

    vim .bashrc

    # Default to human readable figures
     alias df='df -h'
     alias du='du -h'
    #
    # Misc :)
     alias less='less -r'                          # raw control characters
     alias whence='type -a'                        # where, of a sort
     alias grep='grep --color'                     # show differences in colour
     alias egrep='egrep --color=auto'              # show differences in colour
     alias fgrep='fgrep --color=auto'              # show differences in colour
    #
    # Some shortcuts for different directory listings
     alias ls='ls -hF --color=tty'                 # classify files in colour
     alias dir='ls --color=auto --format=vertical'
     alias vdir='ls --color=auto --format=long'
     alias ll='ls -l'                              # long list
     alias la='ls -A'                              # all but . and ..
     alias l='ls -CF'                              #
    直接把   alias ls='ls -hF --color=tty'  前面的#给去掉就行了,我这里还把其他的别名也给开启了。

    最后执行一下

    source  .bashrc   就好了

    再使用的话就能达到你想要的效果了

  • 相关阅读:
    在linux CentOS7 安装Nginx 部署vue
    VS Code 用Vue Cli创建项目
    CentOS8通过命令设置IP地址
    C# .net Core WebApi 系列(一)创建与使用
    JS、C#编码解码
    C#通用类库--数字转为人民币汉字大写表示
    CheckUtil类
    Windows服务用bat命令安装与卸载
    突然的兴趣,我想写一个提取图片中特定颜色图像的程序
    一些常用的基础操作记录
  • 原文地址:https://www.cnblogs.com/smail-bao/p/5534626.html
Copyright © 2011-2022 走看看