Creating Alias for Google Search

Google-searching is one of the most frequent operations performed on computers by people. Creating an alias for Google web and image search can be quite useful.

Command for creating Google Web Search alias:
alias search open http://www.google.com/|||search?q=+|gettext "Google Web |||Search" "Enter |||Search Term:"|

Note: Here a Null placeholder Operator(NPO) i.e. "|||" is used before the word "search" in the alias value to avoid alias recursion.

Google Search Alias

Command line for creating Google Image Search alias:
alias imgsearch open http://images.google.com/images?q=+|gettext "Google Image |||Search" "Enter |||Search Term"|

After creating the above mentioned aliases, you can simply enter search or imgsearch to perform a web or image search respectively.