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   就好了

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

  • 相关阅读:
    mysql查看锁表情况
    利用xtrabackup备份mysql数据库
    /proc/sys/vm/参数
    linux的sysctl基本配置
    python计算apache总内存
    ip_conntrack table full dropping packet错误的解决方法
    apachetop 实时监控apache指定日志
    mysql大表myisam的导入
    编译安装php5.5和php-fpm
    tshark 抓包分析
  • 原文地址:https://www.cnblogs.com/smail-bao/p/5534626.html
Copyright © 2011-2022 走看看