diff --git a/share/functions/fish_command_not_found.fish b/share/functions/fish_command_not_found.fish index a3fe32ae3..4e1ea7ac1 100644 --- a/share/functions/fish_command_not_found.fish +++ b/share/functions/fish_command_not_found.fish @@ -64,6 +64,8 @@ else if type -q pacman # otherwise pacman will try *every path*, and e.g. bash-completion # isn't helpful. string match -q '/*' -- $argv[1]; or set paths $PATH/$argv[1] + # Pacman only prints the path, so we still need to print the error. + __fish_default_command_not_found_handler $argv[1] pacman -F $paths end end