■ [ubuntu] Ubuntuにthe silver searcherを入れてみた the silver searcher(Ag)はgrepとかackとかrakみたいな検索ツール。速いらしい。 aptで入らないらしいので、ソースからコンパイルする。 $ git clone https://github.com/ggreer/the_silver_searcher $ cd the_silver_searcher $ aptitude install automake pkg-config libpcre3-dev zlib1g-dev liblzma-dev (READMEにあるとおり) $ ./build.sh agというファイルができるので、パスを通す。 あとは $ ag foo とかで、カレントディレクトリ以下の全ファイルから"foo"を探すことができる。 あと.agignore
![Route 477 - TRICKみたいなコードをどうやって思いつくのかを解説してみる](https://cdn-ak-scissors.b.st-hatena.com/image/square/b0dd2a08b2c0fff30d70543ed7fa340ebfeb5697/height=288;version=1;width=512/https%3A%2F%2Froute477.net%2Fd%2Fassets%2Fogimage.png)