Google search from command line

##
# Perform google search from command line
# <usage>g well linux c%2b%2b engineer</usage>
# @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=$*"
}