Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
6ae78695
Unverified
Commit
6ae78695
authored
Feb 14, 2021
by
Mario A
Committed by
Marc Cornellà
Apr 09, 2021
Browse files
feat(command-not-found): add support for Termux (#9666)
parent
b54a6dab
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/command-not-found/README.md
View file @
6ae78695
...
...
@@ -28,5 +28,6 @@ It works out of the box with the command-not-found packages for:
-
[
macOS (Homebrew)
](
https://github.com/Homebrew/homebrew-command-not-found
)
-
[
Fedora
](
https://fedoraproject.org/wiki/Features/PackageKitCommandNotFound
)
-
[
NixOS
](
https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/programs/command-not-found
)
-
[
Termux
](
https://github.com/termux/command-not-found
)
You can add support for other platforms by submitting a Pull Request.
plugins/command-not-found/command-not-found.plugin.zsh
View file @
6ae78695
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment