feat(command-not-found): add alpine support (#13864)

This commit is contained in:
Session小胡
2026-08-05 18:10:52 +08:00
committed by GitHub
parent be0dfaad6b
commit a8afe14b93
2 changed files with 8 additions and 0 deletions

View File

@@ -74,3 +74,10 @@ if [[ -x /usr/bin/command-not-found ]]; then
/usr/bin/command-not-found "$1"
}
fi
# Alpine: https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/command-not-found/APKBUILD
if [[ -x /usr/libexec/command-not-found ]]; then
command_not_found_handler() {
/usr/libexec/command-not-found "$1"
}
fi