mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
rebuild whatis database weekly, not daily
I still don't think we even address rebuilding manpage completions yet. Maybe they could share a solution.
This commit is contained in:
@@ -27,7 +27,7 @@ and if test $sysver[2] = 'Darwin' -a $sysver[3] -ge 19
|
||||
#
|
||||
# the cache is rebuilt once a week.
|
||||
set -l whatis $cache/whatis
|
||||
set -l max_age 86400 # one day
|
||||
set -l max_age 600000 # like a week
|
||||
set -l age $max_age
|
||||
|
||||
if test -f "$whatis"
|
||||
|
||||
Reference in New Issue
Block a user