From 9fff448654308b1e1b3d1129c0255544f56c25cc Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 5 Oct 2022 16:33:10 +0100 Subject: initial --- fish/functions/get-random-package-info.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 fish/functions/get-random-package-info.fish (limited to 'fish/functions/get-random-package-info.fish') diff --git a/fish/functions/get-random-package-info.fish b/fish/functions/get-random-package-info.fish new file mode 100644 index 0000000..9d68d78 --- /dev/null +++ b/fish/functions/get-random-package-info.fish @@ -0,0 +1,4 @@ +function get-random-package-info --description 'Get random information on installed Debian packages' + dpkg-query --status (dpkg --get-selections | awk '{print NR,}' | grep -oP "^( echo [ ( + % (dpkg --get-selections| wc -l) + 1 ) ] ) \K.*") +end -- cgit v1.2.3