citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

fuzz-compile-error (384B)


      1 #!/usr/bin/env bash
      2 
      3 set -eou pipefail
      4 
      5 if [ ! -f .build-result ]; then
      6 	printf "no build result found\n" >&2
      7 	exit 1
      8 fi
      9 
     10 # todo: determine project language
     11 PLANG=rust
     12 ERR_OPTS="--exit-0 --tac --ansi --preview 'build-preview {}' --preview-window=top"
     13 
     14 <.build-result grep -E '[[:space:]]*[^: ]+:[0-9]+.*' | 
     15 env FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS $ERR_OPTS" fuzzer "$@" | 
     16 file-jump