mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 01:48:34 -07:00
fix(command-not-found): remove invalid argument for PackageKit (#9876)
`pk-command-not-found` doesn't accept `--` as an argument. This is what happens when `--` is the first argument: ``` $ gem zsh: --: command not found... ```
This commit is contained in:
parent
70ab2928a5
commit
f4de8c5b3a
@ -38,7 +38,7 @@ fi
|
||||
if [[ -x /usr/libexec/pk-command-not-found ]]; then
|
||||
command_not_found_handler() {
|
||||
if [[ -S /var/run/dbus/system_bus_socket && -x /usr/libexec/packagekitd ]]; then
|
||||
/usr/libexec/pk-command-not-found -- "$@"
|
||||
/usr/libexec/pk-command-not-found "$@"
|
||||
return $?
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user