Posted by Anonymous on Thu 12 Mar 22:28
report abuse | download | new post
- #!/bin/zsh
- cd $HOME/.mozilla/firefox
- # profilo attuale di firefox
- current_profile=$(awk -F"=" '/Path/ {print $2}' profiles.ini)
- # mi sposto nella directory su cui eseguire
- cd $HOME/.mozilla/firefox/$current_profile
- # se firefox č attivo esco dallo script
- [ -z $(pidof firefox) ] || return 1
- # find ~/.mozilla/firefox/${current_profile} -name '*.sqlite' -exec sqlite3 '{}' 'VACUUM;' \;
- # "svelocizzo firefox"
- for i in *.sqlite; do
- echo "VACUUM;" | sqlite3 $i ;
- done
- return 0
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.