mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-29 06:02:40 +00:00
12 lines
345 B
Plaintext
12 lines
345 B
Plaintext
do --env {
|
|
# Handles nonexistent commands.
|
|
# If user has entered command which invokes non-available
|
|
# utility, command-not-found will give a package suggestions.
|
|
let cnf = '@TERMUX_PREFIX@/libexec/termux/command-not-found'
|
|
if ($cnf | path exists) {
|
|
$env.config.hooks.command_not_found = {|cmd|
|
|
run-external $cnf $cmd | print
|
|
}
|
|
}
|
|
}
|