mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
22 lines
490 B
TOML
22 lines
490 B
TOML
[metadata]
|
|
name = "pacman-packages"
|
|
description = "List and manage installed pacman packages"
|
|
requirements = ["pacman"]
|
|
|
|
[source]
|
|
command = "pacman -Q"
|
|
output = "{split: :0}"
|
|
|
|
[preview]
|
|
command = "pacman -Qi '{split: :0}' 2>/dev/null"
|
|
|
|
[actions.remove]
|
|
description = "Remove the selected package"
|
|
command = "sudo pacman -R '{split: :0}'"
|
|
mode = "execute"
|
|
|
|
[actions.files]
|
|
description = "List files owned by the selected package"
|
|
command = "pacman -Ql '{split: :0}' | less"
|
|
mode = "execute"
|