summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-02-28 04:36:36 +0000
committerMatthew Lemon <y@yulqen.org>2024-02-28 04:36:36 +0000
commit9b57ebd8c15f351fa4b56067ddb57bc6a637d934 (patch)
tree6185f39c33bd1f6eedb31a452862826d96572108
parent21d784c65d92572e6b8d23442a205cb3bf8d9198 (diff)
Adds deb-packages-by-section= alias
Diffstat (limited to '')
-rw-r--r--fish2024/functions/deb-pkgs-by-section=.fish4
1 files changed, 4 insertions, 0 deletions
diff --git a/fish2024/functions/deb-pkgs-by-section=.fish b/fish2024/functions/deb-pkgs-by-section=.fish
new file mode 100644
index 0000000..bdb76a2
--- /dev/null
+++ b/fish2024/functions/deb-pkgs-by-section=.fish
@@ -0,0 +1,4 @@
+function deb-pkgs-by-section= --wraps=dpkg-query\ -W\ -f=\'\$\{Section\}\\t\$\{Package\}\\n\' --description alias\ deb-pkgs-by-section=\ dpkg-query\ -W\ -f=\'\$\{Section\}\\t\$\{Package\}\\n\'
+ dpkg-query -W -f='${Section}\t${Package}\n' $argv
+
+end