Enable ubuntu command not found handler

This commit is contained in:
Marko Korhonen 2022-08-17 22:02:56 +03:00
parent 33037ba06d
commit dc8475f7bb
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
2 changed files with 6 additions and 7 deletions

View file

@ -73,8 +73,3 @@ fi
# Disable dotdrop submodule auto update
export DOTDROP_AUTOUPDATE=no
{%@@ if os == "arch" @@%}
# Enable pkgfile command not found handler
source /usr/share/doc/pkgfile/command-not-found.zsh
{%@@ endif @@%}

View file

@ -12,9 +12,13 @@ forgit_revert_commit=fgrc
# Modern replacement for ls
alias ls='exa'
{%@@ if os == "termux" @@%}
# Enable command not found handler
{%@@ if os == "arch" @@%}
source /usr/share/doc/pkgfile/command-not-found.zsh
{%@@ elif os == "ubuntu" @@%}
source /etc/zsh_command_not_found
{%@@ elif os == "termux" @@%}
function command_not_found_handler {
printf 'zsh: command not found: %s\n' "$1"
$PREFIX/libexec/termux/command-not-found $1
}
{%@@ endif @@%}