summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fish/functions/pacprov.fish3
-rw-r--r--fish/functions/pacreq.fish3
-rw-r--r--fish/functions/sysusers.fish4
3 files changed, 10 insertions, 0 deletions
diff --git a/fish/functions/pacprov.fish b/fish/functions/pacprov.fish
new file mode 100644
index 0000000..729bc7a
--- /dev/null
+++ b/fish/functions/pacprov.fish
@@ -0,0 +1,3 @@
+function pacprov
+ pacman -Qi | grep ^Provides | grep -wo "[^ ]*" | sort | uniq -d | grep -v ":\|None\|Provides"
+end
diff --git a/fish/functions/pacreq.fish b/fish/functions/pacreq.fish
new file mode 100644
index 0000000..e6e057b
--- /dev/null
+++ b/fish/functions/pacreq.fish
@@ -0,0 +1,3 @@
+function pacreq
+ pacman -Qi (pacman -Qeq) | grep "Name\|Required" | grep -v None | grep "Required" -B1
+end
diff --git a/fish/functions/sysusers.fish b/fish/functions/sysusers.fish
new file mode 100644
index 0000000..eef7b11
--- /dev/null
+++ b/fish/functions/sysusers.fish
@@ -0,0 +1,4 @@
+function sysusers
+ diff (awk -F: '$3 < 1000 {print $1}' /etc/passwd | sort | psub) (systemd-sysusers --tldr | awk '$1 == "u" {print $2}' | grep -v nobody | sort | psub)
+ diff (awk -F: '$3 < 1000 {print $1}' /etc/group | sort | psub) (systemd-sysusers --tldr | awk '$1 == "u" || $1 == "g" {print $2}' | grep -v nobody | sort | uniq | psub)
+end