Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (20 sloc) 497 Bytes
# Search here using SpotLight
function mdhere()
{
mdfind -onlyin . $*
}
# Search globally by name, using SpotLight
function mdloc()
{
mdfind "kMDItemFSName == '$*'wc"
}
# Search globally by name and content, using SpotLight
function mdcontent()
{
mdfind -interpret "$@";
}
# This function opens a search on google US
function google()
{
python -c "import sys, webbrowser, urllib; webbrowser.open('http://www.google.com/search?' + urllib.urlencode({'q': ' '.join(sys.argv[1:]) }))" $@
}