ctools added for zsh
This commit is contained in:
parent
b3c7421265
commit
35dd43d940
7
.zshrc.d/__available__/ctools.zsh
Normal file
7
.zshrc.d/__available__/ctools.zsh
Normal file
@ -0,0 +1,7 @@
|
||||
ctail(){
|
||||
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"
|
||||
}
|
||||
|
||||
cgrep(){
|
||||
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"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user