From 8f4ab2582bd2df1ba385be13b5324db6964bf058 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Tue, 5 Sep 2023 13:37:37 +0200 Subject: [PATCH] ctools extended and correction --- .zshrc.d/__available__/ctools.zsh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.zshrc.d/__available__/ctools.zsh b/.zshrc.d/__available__/ctools.zsh index 3c4e494..457d856 100644 --- a/.zshrc.d/__available__/ctools.zsh +++ b/.zshrc.d/__available__/ctools.zsh @@ -2,11 +2,15 @@ ccat(){ 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" } +cless(){ + ccat $* | less -r +} + ctail(){ - tail $* | ccat" + tail $* | ccat } cgrep(){ - grep $* | ccat" + grep $* | ccat }