diff --git a/custom_hooks/install.txt b/custom_hooks/install.txt new file mode 100644 index 00000000..2e6905a8 --- /dev/null +++ b/custom_hooks/install.txt @@ -0,0 +1,9 @@ +This is a simple pacman hook that will update the mandb (the database of man pages) whenever you update. + +It was taken from this Artix form post: + +https://forum.artixlinux.org/index.php/topic,1080.0.html + +very simply: + +doas cp mandb-update.hook /usr/share/libalpm/hooks diff --git a/custom_hooks/mandb-update.hook b/custom_hooks/mandb-update.hook new file mode 100644 index 00000000..e9ad0da1 --- /dev/null +++ b/custom_hooks/mandb-update.hook @@ -0,0 +1,11 @@ +[Trigger] +Type = File +Operation = Install +Operation = Upgrade +Operation = Remove +Target = usr/share/man/* + +[Action] +Description = Updating manpage index cache... +When = PostTransaction +Exec = /usr/bin/mandb --quiet