Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mozdefrag() {
- pgrep 'firefox|thunderbird' &> /dev/null
- if [ $? -eq 0 ]
- then
- echo Close Thunderbird and Firefox first
- return 1
- fi
- for f in $(find $HOME/{.mozilla,.thunderbird} -name *.sqlite)
- do
- sqlite3 $f 'VACUUM; REINDEX;'
- done
- }
Add Comment
Please, Sign In to add comment