summaryrefslogtreecommitdiffstats
path: root/scripts/firstrun
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-04-08 13:26:19 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-04-08 13:26:19 +0200
commitc46b6a0eb82bdfc744f5a4643ee8c326d8738394 (patch)
treedde8928a041ab0b5a7241a4c3f0a0652537d1d55 /scripts/firstrun
parentbfcc3dfe3b07e92458d4bdc84ae45c746eb252b4 (diff)
downloaddotfiles-c46b6a0eb82bdfc744f5a4643ee8c326d8738394.tar.gz
dotfiles-c46b6a0eb82bdfc744f5a4643ee8c326d8738394.tar.xz
dotfiles-c46b6a0eb82bdfc744f5a4643ee8c326d8738394.zip
Further enhancement to the firefox setup script (cont'd)
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'scripts/firstrun')
-rw-r--r--scripts/firstrun/10-firefox13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/firstrun/10-firefox b/scripts/firstrun/10-firefox
index b86bf51..ace9bd3 100644
--- a/scripts/firstrun/10-firefox
+++ b/scripts/firstrun/10-firefox
@@ -16,19 +16,22 @@ plugins+=" 7765" # ? IdentFavIcon
plugins+=" 9609" # ** Ghostery
plugins+=" 13784" # **** Open Bookmarks in New Tab
plugins+=" 71411" # ** Tile Tabs
-plugins+=" 116959" # ? Tab Group Switcher
#plugins+=" 184566" # ***** Tree Style Tab
plugins+=" 193270" # ? Print Edit -> http://piro.sakura.ne.jp/xul/xpi/treestyletab.xpi
#plugins+=" 235854" # ***** Pentadactyl -> http://5digits.org/nightly/pentadactyl-latest.xpi
+plugins_extra+=" http://5digits.org/nightly/pentadactyl-latest.xpi"
+plugins_extra+=" http://piro.sakura.ne.jp/xul/xpi/treestyletab.xpi"
+
for plugin in $plugins; do
${WGET} "https://addons.mozilla.org/firefox/downloads/latest/${plugin}/addon-${plugin}-latest.xpi"
firefox "addon-${plugin}-latest.xpi" &
done
-[ "${DELETE}" -ne 0 ] && rm *.xpi
-
-firefox http://5digits.org/nightly/pentadactyl-latest.xpi http://piro.sakura.ne.jp/xul/xpi/treestyletab.xpi
+for plugin in $plugins_extra; do
+ ${WGET} "${plugin}"
+ firefox "$(echo "${plugin_extra}" | sed 's|.*/\([^/]\+\)|\1|')" &
+done
# searches
@@ -38,4 +41,6 @@ firefox http://5digits.org/nightly/pentadactyl-latest.xpi http://piro.sakura.ne.
# ${WGET} "https://addons.mozilla.org/firefox/downloads/latest/${plugin}/addon-${plugin}-latest.xml"
#done
+[ "${DELETE}" -ne 0 ] && rm -I *.xpi || read -p "Press any key to continue " x
+
[ -f ~/.pentadactylrc-firstrun ] && firefox -pentadactyl "++cmd 'source ~/.pentadactylrc-firstrun'"