Guest User

Untitled

a guest
May 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. function mozdefrag() {
  2.   pgrep 'firefox|thunderbird' &> /dev/null
  3.  
  4.   if [ $? -eq 0 ]
  5.   then
  6.     echo Close Thunderbird and Firefox first
  7.     return 1
  8.   fi
  9.  
  10.   for f in $(find $HOME/{.mozilla,.thunderbird} -name *.sqlite)
  11.   do
  12.     sqlite3 $f 'VACUUM; REINDEX;'
  13.   done
  14. }
Add Comment
Please, Sign In to add comment