mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 05:52:46 +08: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:
parent
0e03e49eb9
commit
b9b2010342
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user