Last active
August 29, 2015 14:19
-
-
Save mbejda/d2cdc698e395ab284736 to your computer and use it in GitHub Desktop.
Simple StackOverFlow Search CLI
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
sof() | |
{ | |
#relevance newest votes active | |
if [ "$1" == "" ]; then | |
echo "question is missing" | |
return 1; | |
fi | |
if [ "$2" != "" ]; then | |
echo \$2 is set; | |
tab=$2; | |
else | |
tab='relevance'; | |
fi | |
open "http://stackoverflow.com/search?tab=$tab&q=$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment