citadel

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

build-preview (216B)


      1 #!/usr/bin/env bash
      2 
      3 process_line() {
      4 	<<<"$1" stripansi | sed 's,\[,\\[,g;s,\],\\],g'
      5 }
      6 
      7 line="$(process_line "$1")"
      8 
      9 
     10 <.build-result stripansi | grep -E -A20 "$line" | bat -l rust --color=always --highlight-line 1