spotlight 便利
spotlight ないと生きていけない。でも、find も捨てられない。
spotlight をコマンドから使うにはmdfind
mdfind キーワード
mdfind を ターミナルから使えると便利です。
ディレクトを限定するには
でもターミナルから使うにはちょっと検索範囲が広すぎるんですよね。
-onlyin をつける
mdfind -onlyin ~/Document ruby
やってみた
ふむ便利そう。
takuya@~/Desktop$ mdfind -onlyin ~/repos ruby /Users/takuya/repos/my_command/usr/local/bin/remark /Users/takuya/repos/my_command/usr/local/bin/gfm /Users/takuya/repos/WISPr/ssid.rb /Users/takuya/repos/auth_key/lib/auth_keys.rb /Users/takuya/repos/my_command/usr/local/sbin/evernote_key.rb /Users/takuya/repos/my_command/usr/local/sbin/evernote_cmd.rb /Users/takuya/repos/my_command/usr/local/bin/unzip-c932.rb /Users/takuya/repos/scrapers/lib/report/evernote.rb /Users/takuya/repos/scrapers/lib/report.rb
参考資料
http://www.macosxtips.co.uk/index_files/terminal-commands-for-improving-spotlight.php