Here it is, in its entirety:
# search Gmail THIS WAY, not by going to the Inbox
search_gmail() {
open "http://mail.google.com/mail/#search/$*"
}
Usage:
search_gmail whateverThis takes you directly to your search results from the command line, and allows you to skip entirely the whole distracting experience that is your inbox. Note that it only works for one-word search terms, and would need some minor tweaks (namely URL encoding) to support fuller searches. (I'd put the gist on GitHub and encourage you to fork it, but GitHub appears to be down at the moment.)












