Bookmarked linux shell commands

Just useful for me some stuff

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=$*"
}

Konqueror your man

##
# Manual browsing
# Konqueror can show you man pages as well html
# @author Andrey Zakharov /aka Vaulter/ 
# @author ramok 
man()
{
    [ -n "$DISPLAY" ] &&  konqueror "man:/$*" 2>/dev/null & ||  man $*
}