mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Print default error in the pacman cnf-handler
Pacman *only* prints the package if it exists, no error or anything. Fixes #7327.
This commit is contained in:
parent
0e9b496bba
commit
691deac1e4
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue