commit a804f43dcb362f0c94169ddc1e59b4a2df467306 parent 7fba811c0422484c74d76249c55d7bc2d143adf7 Author: William Casarin <jb55@jb55.com> Date: Tue, 4 May 2021 03:39:40 -0700 fuzz-compile-error: show top errors first Diffstat:
M | bin/fuzz-compile-error | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/fuzz-compile-error b/bin/fuzz-compile-error @@ -9,7 +9,7 @@ fi # todo: determine project language LANG=rust -ERR_OPTS="--exit-0 --preview 'grep -A20 {} .build-result | bat -l $LANG --color=always --highlight-line 1' --preview-window=:wrap:60%" +ERR_OPTS="--exit-0 --tac --preview 'grep -B1 -A20 {} .build-result | bat -l $LANG --color=always --highlight-line 1' --preview-window=:wrap:60%" <.build-result grep -E '[[:space:]]*[^: ]+:[0-9]+.*' | env FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS $ERR_OPTS" fuzzer "$@" |