#!/bin/sh
#
# ---
# source: https://github.com/lf-/dotfiles/blob/main/bin/apropose

# shellcheck disable=SC2312
rg --files-with-matches --search-zip --follow "$1" \
  $(manpath 2>/dev/null | tr ':' ' ') 2>/dev/null \
  | perl -pe 's#.*/(.*?)(\.gz)?$#\1#'
