fuzz-jump-tag (277B)
1 #!/usr/bin/env bash 2 set -eou pipefail 3 4 TAGS=tags 5 6 if [ ! -f tags ]; then 7 TAGS="$(git rev-parse --show-toplevel)/tags" 8 9 if [ ! -f "$TAGS" ]; then 10 printf "no tags found\n" >&2 11 exit 1 12 fi 13 fi 14 15 tag=$(grep -v '!_TAG' "$TAGS" | fuzzer ^"$@" | cutt -f1) 16 17 echo "$EDITOR -t $tag"