# ssh_gpgforward completion — backward-compat shim                  -*- shell-script -*-
# Copyright © 2025 Jean-Jacques Brucker (u4=sRyUhEbNU5OwyLEjfSwaXAe_42.17-002.76) <jjbrucker@foopgp.org>
# Copyright © 2026 Mnème (u5=001777236237.945e_43.30_005.38) <mneme@foopgp.org>
# SPDX-License-Identifier: GPL-3.0-only

# ssh_gpgforward is the legacy name (≤ djibian-gpgconfig 0.9.x) of what
# is now distributed as the standalone `sshwgpg` package (1.0+). The
# binary at /usr/bin/ssh_gpgforward is a symlink to /usr/bin/sshwgpg,
# but bash-completion identifies completions by basename — so we need
# a small shim here that loads sshwgpg's completion and registers it
# under the legacy command name.

source /usr/share/bash-completion/completions/sshwgpg
complete -F _comp_cmd_sshwgpg ssh_gpgforward
