google

Google search from command line

##
# Perform google search from command line
# g well linux c%2b%2b engineer
# @TODO url decode
g() {
if [ -n "$DISPLAY" ] &&
env x-www-browser "http://www.google.com/search?hl=${LANG%%_*}&q=$*" & ||
env www-browser "http://www.google.com/search?hl=${LANG%%_*}&q=$*"
}

Syndicate content