added a custom hooks section with mandb-update.hook file and instructions for installation
This commit is contained in:
parent
955abb2a98
commit
3c73e64b94
2 changed files with 20 additions and 0 deletions
9
custom_hooks/install.txt
Normal file
9
custom_hooks/install.txt
Normal file
|
|
@ -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
|
||||||
11
custom_hooks/mandb-update.hook
Normal file
11
custom_hooks/mandb-update.hook
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue