From bb8fe8f9581414f9371743465d805ff058aea6cd Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 15 Apr 2022 05:42:04 +0200 Subject: [PATCH] Enhance less command in readwwwlog --- .config/zsh/functions/readwwwlog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/functions/readwwwlog b/.config/zsh/functions/readwwwlog index 0a359ed..923e03e 100755 --- a/.config/zsh/functions/readwwwlog +++ b/.config/zsh/functions/readwwwlog @@ -25,7 +25,7 @@ for url in ${urls}; do sleep 1 # dpaste.com workaround local file="$(mktemp --suffix='.readwwwlog')" curl --silent --location --output ${file} ${url} - ${TERMINAL} -e less ${file} + ${TERMINAL} -e less --LINE-NUMBERS --pattern='(error|fail):' ${file} rm ${file} else ${default_cmd} ${url}