Created
November 28, 2012 22:54
-
-
Save hsablonniere/4165332 to your computer and use it in GitHub Desktop.
The World Wide Web bash script. A random browser opener.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The World Wide Web bash script. A random browser opener. | |
# Windows version | |
# TODO | |
# CHROME | |
# FIREFOX | |
# IE | |
# OPERA | |
# SAFARI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# The World Wide Web bash script. A random browser opener. | |
# Linux version | |
browser_idx=$(($RANDOM%3)) | |
echo $browser_idx | |
if [[ $browser_idx == 0 ]] | |
then | |
google-chrome& | |
fi | |
if [[ $browser_idx == 1 ]] | |
then | |
firefox& | |
fi | |
if [[ $browser_idx == 2 ]] | |
then | |
opera& | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The World Wide Web bash script. A random browser opener. | |
# Mac version | |
# TODO | |
# CHROME | |
# FIREFOX | |
# OPERA | |
# SAFARI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like any other web user, web devs have a favourite browser for day to day surfing. Our job is to build for the open web platform. We need to build for all of them. I think using more the "other" browsers we don't use regularly makes us stronger.
If like me you're too lazy to click on a different browser icon each time you just surf. Here's the script.
I'll need contributors for a Mac (with Safari) and Windows (with Safari and IE) version...