Permalink
Browse files

Merge pull request #3 from junag/master

conkeror and thunderbird support
  • Loading branch information...
2 parents ec5cd53 + 0ca6b8d commit 5c375c54e99561735d203acfb8231b94ab9b0aad @graysky2 committed Sep 16, 2012
Showing with 28 additions and 4 deletions.
  1. +28 −4 profile-cleaner
View
@@ -45,8 +45,7 @@ do_chrome() {
done
}
-do_firefox() {
- path=$HOME/.mozilla/firefox
+do_xulbased() {
if [[ ! -f $path/profiles.ini ]]; then
echo "Error: cannot locate $path/profiles.ini to determine names of profiles."
exit 0
@@ -60,6 +59,21 @@ do_firefox() {
done
}
+do_firefox() {
+ path=$HOME/.mozilla/firefox
+ do_xulbased
+}
+
+do_conkeror() {
+ path=$HOME/.conkeror.mozdev.org/conkeror
+ do_xulbased
+}
+
+do_thunderbird() {
+ path=$HOME/.thunderbird
+ do_xulbased
+}
+
export -f do_clean
case "$1" in
@@ -76,11 +90,21 @@ case "$1" in
do_firefox
exit 0
;;
+ ck)
+ do_conkeror
+ exit 0
+ ;;
+ t)
+ do_thunderbird
+ exit 0
+ ;;
*)
- echo "Usage $0 {c|f|gc}"
+ echo "Usage $0 {c|ck|f|gc|t}"
echo " c) chromium"
+ echo "ck) conkeror"
echo " f) firefox"
- echo "gc) google chrome"
+ echo "gc) google chrome"
+ echo " t) thunderbird"
exit 0
;;
esac

0 comments on commit 5c375c5

Please sign in to comment.