Files
termux-packages/packages/nushell/command-not-found.nu

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
}
}
}