Bashrc.wiki: Updated Pkgfile as command-not-found section with info for auto-updating pkgfile's databases
This commit is contained in:
parent
c90737a69e
commit
850f3c2aac
|
@ -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.
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue