グァソのメモ書き

主に自分用メモ

Ubuntuにthe_silver_searcher(ag)をインストールする手抜きスクリプト

the_silver_searcherが何なのかは割愛。

普通にREADMEに書いてある通りなのであくまで自分用のメモ。
sudoなりrootで実行する。
俺の場合は~にgitってディレクトリを掘ってその下で以下の手順を実行する。
特に意味はないけどシェルスクリプトにしたった。
ぶっちゃけこのくらいならスクリプトにする理由もないのだがw

#!/bin/sh
apt-get install automake pkg-config libpcre3-dev zlib1g-dev liblzma-dev
git clone https://github.com/ggreer/the_silver_searcher.git
cd the_silver_searcher
./build.sh
install ag /usr/bin/
which ag
exit 0

後はシェルを再起動したりreloadしたり。