From 8daff27305a4ea9fca1ed2b08bc7eeebe3916c9a Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Wed, 17 Aug 2022 21:44:39 +0300 Subject: [PATCH] Add command not found handler for termux --- home/.config/zsh/03-aliases.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/.config/zsh/03-aliases.zsh b/home/.config/zsh/03-aliases.zsh index b8487592..67fce11f 100644 --- a/home/.config/zsh/03-aliases.zsh +++ b/home/.config/zsh/03-aliases.zsh @@ -40,6 +40,11 @@ function command_not_found_handler { done fi } +{%@@ if os == "termux" @@%} +function command_not_found_handler { + $PREFIX/libexec/termux/command-not-found $1 +} +{%@@ endif @@%} # search and install/remove packages with fzf pi() {