feat(command-not-found): add support for Termux (#9666)

This commit is contained in:
Mario A authored and Marc Cornellà committed 2021-04-09 21:42:11 +02:00
1 parent b54a6dab9c
commit 6ae78695ef
2 files changed
+8

No files matched your search

@@ -53,3 +53,10 @@ if [[ -x /run/current-system/sw/bin/command-not-found ]]; then
/run/current-system/sw/bin/command-not-found -- "$@"
}
fi
# Termux: https://github.com/termux/command-not-found
if [[ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]]; then
command_not_found_handler() {
/data/data/com.termux/files/usr/libexec/termux/command-not-found -- "$1"
}
fi