]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
crontab: Remove CtrlP cache files after one day.
authorSimon Ruderich <simon@ruderich.org>
Wed, 23 Oct 2013 23:13:26 +0000 (01:13 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 23 Oct 2013 23:13:26 +0000 (01:13 +0200)
crontab

diff --git a/crontab b/crontab
index 11c245689d4aaf35e607e434031edf1aa384747f..16b060e8fb4107f198495b7514023093f619c1d3 100644 (file)
--- a/crontab
+++ b/crontab
@@ -16,6 +16,6 @@
 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
 
 
-# Delete CtrlP cache files older than one week to force CtrlP to repopulate
-# the cache with current directory content.
-36 */8 * * * D="$HOME/.vim/cache/ctrlp/"; test -d "$D" && find "$D" -name '\%*' -type f -mtime +7 -delete; true
+# Delete CtrlP cache files older than one day to force CtrlP to repopulate the
+# cache with current directory content.
+36 */8 * * * D="$HOME/.vim/cache/ctrlp"; test -d "$D" && find "$D" -name '\%*' -type f -mtime +1 -delete; true