summaryrefslogtreecommitdiff
path: root/home/xyz/.local
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz/.local')
-rwxr-xr-xhome/xyz/.local/bin/pq14
1 files changed, 14 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/pq b/home/xyz/.local/bin/pq
new file mode 100755
index 00000000..09ccd2b4
--- /dev/null
+++ b/home/xyz/.local/bin/pq
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Pacman Query, to manually determine remove the package or not
+
+f () {
+ pacman -Qi "$1" | awk '/^Optional Deps/{f=1}/^Conflicts With/{f=0}f || /^Description/ || /^URL/ || /^Groups/ || /^Installed Size/ || /^Install Reason/'
+ printf '\n'
+ pacman -Ql "$1" | grep '/bin/[^$]'
+ printf '\n'
+ pactree -r "$1"
+ printf '\n'
+ grep --color=always -IR "$1" "$XDG_DOCUMENTS_DIR/notes"
+}
+
+[ "$1" ] && f "$1" | "$PAGER"