原理: ls -G 可显示彩色文件名。

在终端输入: nano ~/.bash_profile 辑器.bash_profile文件,粘贴下面内容:

alias cls='tput reset'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l.='ls -dG .*'
alias ll='ls -lG'
alias ls='ls -G'

Ctrl+X,Y,Enter 退出保存,重新启动终端就可以了。

 

原文:http://segmentfault.com/q/1010000000653503

 

相关文章:

  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2021-11-01
  • 2022-01-09
  • 2022-03-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-09
  • 2022-12-23
  • 2021-10-10
  • 2021-11-06
  • 2021-07-20
相关资源
相似解决方案