Bashrc.wiki: Updated Pkgfile as command-not-found section with info for auto-updating pkgfile's databases

This commit is contained in:
David Thurstenson 2021-06-05 19:03:14 -05:00
parent c90737a69e
commit 850f3c2aac
1 changed files with 3 additions and 1 deletions

View File

@ -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 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.
---- ----