Skip to content

Instantly share code, notes, and snippets.

@numa08
Created August 17, 2013 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save numa08/6257045 to your computer and use it in GitHub Desktop.
Save numa08/6257045 to your computer and use it in GitHub Desktop.
ぐぐるやつ

ぐぐるやつ

使い方

macの人

  • デフォルトのブラウザで起動する

export GOOGLE_COD=open

cygwinの人

  • デフォルトのブラウザで起動する export GOOGLE_CMD=cygstart

検索をする

./googru.sh デ・ジ・キャラット

and検索

./googru.sh でじこちゃん かわいい

#!/bin/sh
if [ -z ${GOOGLE_CMD} ];then echo GOOGLE_CMD is not defined; echo 'let do(mac,bash) \"export GOOGLE_CMD=open\"'; exit 1; fi; query=""; for q in $*; do query=`echo ${query}"+"${q}`; done; ${GOOGLE_CMD} http://google.com/search?q=${query};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment