/run script for youtube and wiki and google

By Linuxuser on Feb 14, 2009

this is a simple script all you do is type /wiki or /youtube or /google and the what you wanna search for then it will open in your web browser.

alias youtube { set %search4 http://uk.youtube.com/results?search_type=&search_query= $1-
    /run %search4 
}
alias wiki { set %search3 http://en.wikipedia.org/wiki/special:search?search= $1-
    /run %search3
}
alias google { set %search http://www.google.com/custom?q= $1-
    /run %search
}

Comments

Sign in to comment.
PATX   -  Apr 23, 2009

dashh: good thinking owner of this pointless script: do wat dashh says

rating: 1 (bad)
reason: pointless

 Respond  
dashh   -  Feb 22, 2009

maybe can make only a one aliase

alias web {
if $1 = go
if $1 = wiki
if $1 = tube
}

or some thing xD

 Respond  
chadbdurham   -  Feb 22, 2009

napa182 ftw, I would've suggested that too.

 Respond  
napa182   -  Feb 14, 2009

for one you need to change $2- into $1- also no need to set a var

i would do this instead

alias google { if ($1) { url $+(http://www.google.com/custom?q=,$1-) } }
alias youtube { if ($1) { url $+(http://uk.youtube.com/results?search_type=&search_query=,$1-) } }
alias wiki { if ($1) { url $+(http://en.wikipedia.org/wiki/special:search?search=,$1-) } }
 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.