From a5b424073c1aacb5d4e5f7a32dc2f51a6c5cf4e4 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 23 Apr 2022 15:41:24 +0200 Subject: [PATCH] readwwwlog: Start at line 1 if pattern is not found --- .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 47dadba..d6e7e29 100755 --- a/.config/zsh/functions/readwwwlog +++ b/.config/zsh/functions/readwwwlog @@ -36,7 +36,7 @@ for url in ${urls}; do local file="$(mktemp --suffix='.readwwwlog')" curl --silent --location --output ${file} ${url} - local -a cmd=(less --LINE-NUMBERS --ignore-case \ + local -a cmd=(less +1 --LINE-NUMBERS --ignore-case \ --pattern='(error|fail):' ${file}) if [[ -o NO_INTERACTIVE ]]; then cmd=(${TERMINAL} ${termopts} -e ${cmd})