Config File Collection
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ctools.zsh 285B

123456789101112
  1. ccat(){
  2. cat $* | sed -u "s/ERROR/$(tput setaf 1)&$(tput sgr0)/gI"|sed -u "s/WARNING/$(tput setaf 3)&$(tput sgr0)/gI"|sed -u "s/INFO/$(tput setaf 2)&$(tput sgr0)/gI"|sed -u "s/DEBUG/$(tput setaf 6)&$(tput sgr0)/gI"
  3. }
  4. ctail(){
  5. tail $* | ccat"
  6. }
  7. cgrep(){
  8. grep $* | ccat"
  9. }