From 617125dedae6639df615f15f7e2054c681ab0f55 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 28 Jan 2021 13:53:52 +0100 Subject: [PATCH] Fix command not found handler for ubuntu --- home/.config/sh/handlers | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/.config/sh/handlers b/home/.config/sh/handlers index c5c02cb..f2d1680 100755 --- a/home/.config/sh/handlers +++ b/home/.config/sh/handlers @@ -26,8 +26,8 @@ if command -v pkgfile > /dev/null; then elif [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then # Ubuntu handle for bash default command-not-found # it works similarely to the above arch alternative, - # this is a clone of the original bash implementation - function command_not_found_handle { + # this is based on the original bash implementation + command_not_found_handler() { # check because cmd not found could've been removed in the meantime if [ -x /usr/lib/command-not-found ]; then /usr/lib/command-not-found -- "$1"