From 1009bcd1b2902d02097149a9b1e4fc4372a0c945 Mon Sep 17 00:00:00 2001 From: iff Date: Tue, 22 Apr 2025 15:39:06 +0200 Subject: [PATCH] rules(pacman): `-S` with no target --- rules/pacman.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rules/pacman.toml b/rules/pacman.toml index 915111f..9b1bdb3 100644 --- a/rules/pacman.toml +++ b/rules/pacman.toml @@ -13,3 +13,12 @@ suggest = [ {{command[0]}} -S {{command[1:]}}''', ] +[[match_err]] +pattern = [ + "no targets specified" +] +suggest = [ +''' +#[cmd_contains(-S)] +{{command[0]}} -Syu''', +]