Ver código fonte

ctools added for zsh

master
Dirk Alders 1 ano atrás
pai
commit
35dd43d940
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7
    0
      .zshrc.d/__available__/ctools.zsh

+ 7
- 0
.zshrc.d/__available__/ctools.zsh Ver arquivo

@@ -0,0 +1,7 @@
1
+ctail(){
2
+    tail $* | 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
+
5
+cgrep(){
6
+    grep $* | 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"
7
+}

Carregando…
Cancelar
Salvar