VL
Size: a a a
VL
DL
m
DL
VL
VL
NK
DL
DL
NK
NK
NK
DL
DL
updatedb -l 0 -o music.db -U ~/docs/music
DL
locate -d music.db amorphis
DL
DL
(defun counsel--locate-updatedb ()
(when (file-exists-p "~/.Private")
(let ((db-fname (expand-file-name counsel-locate-db-path)))
(setenv "LOCATE_PATH" db-fname)
(when (or (not (file-exists-p db-fname))
(counsel-file-stale-p db-fname 60))
(message "Updating %s..." db-fname)
(counsel--command
"updatedb" "-l" "0" "-o" db-fname "-U" (expand-file-name "~"))))))
DL
DL