a simple but effective google search

By Linuxuser on Jan 22, 2009

this script is a simple search script for personal use

type /!google < whatever you want to search here >

on *:INPUT:~:{ if (!google == $1) { set %search http://www.google.com/custom?q= $2 
/run %search 
}
}

Comments

Sign in to comment.
PATX   -  Apr 23, 2009

rating: 1 (bad)
reason: on :text:!google:#: { run http://www.google.com/custom?q= $+ $1 }

 Respond  
Jonesy44   -  Jan 27, 2009

Touch me too -.-

 Respond  
pope   -  Jan 27, 2009

touche

 Respond  
Jonesy44   -  Jan 27, 2009

with the first instance, pope. you can only search for one term. with the second, it's unlimited :]

 Respond  
pope   -  Jan 26, 2009

i'd go with:

alias google { run http://www.google.com/custom?q= $+ $1 }

alot simpler than alias google { run $+(http://www.google.com/custom?q=,$replace($2,$chr(32),+)) }

 Respond  
Jonesy44   -  Jan 26, 2009
alias google { run $+(http://www.google.com/custom?q=,$replace($2-,$chr(32),+)) }

/google blady bla

 Respond  
PuNkTuReD   -  Jan 23, 2009

type /!google < whatever you want to search here >

should be

type !google < whatever you want to search here >

and you might wanna let people know where to type
!google < whatever you want to search here >

i recommend changing the "~" to "*"

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.