From 850f3c2aac7381de9c8f1f11b23042744f388f56 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 19:03:14 -0500 Subject: [PATCH] Bashrc.wiki: Updated Pkgfile as command-not-found section with info for auto-updating pkgfile's databases --- Bashrc.wiki | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index ca47642..87ff0dc 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -98,7 +98,9 @@ Most of these are simple creature comforts and are commented with sufficient exp https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/pkgfile.bash -This sets up `bash`'s `command_not_found_handle()` functionality so that when a command cannot be found in `PATH`, it will use `pkgfile` to check for that command in the `pacman` sync databases. Another mechanism should be used to keep `pkgfile`'s databases up to date. +This sets up `bash`'s `command_not_found_handle()` functionality so that when a command cannot be found in `PATH`, it will use `pkgfile` to check for that command in its databases, which are derived from the same [[https://wiki.archlinux.org/title/Pacman#Search_for_a_package_that_contains_a_specific_file|databases that `pacman -F` uses.]] + +To keep these databases updated, `pkgfile` ships [[https://wiki.archlinux.org/title/Pkgfile#Automatic_updates|a systemd timer]] that runs the update command daily. ----