3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

pecoコマンド導入手順

Posted at

goを使ってpecoコマンドを導入する手順。
(goを使わずにpecoをインストールする方法もあるが、その方法はここでは扱わない)

まずはgoの導入。

$ mkdir ~/lib; cd $_
$ wget https://storage.googleapis.com/golang/go1.6.2.linux-armv6l.tar.gz
$ tar -xzf go1.6.2.linux-armv6l.tar.gz
$ echo 'export GOROOT=$HOME/lib/go' >> ~/.zshenv
$ echo 'export GOPATH=$GOROOT/packages' >> ~/.zshenv
$ echo 'export PATH=$GOROOT/bin:$PATH' >> ~/.zshenv
$ echo 'export PATH=$GOPATH/bin:$PATH' >> ~/.zshenv
$ exec zsh

これでgoの導入は完了。
次で確認できる。

$ go version
go version go1.6.2 linux/arm

pecoの導入。

$ go get github.com/peco/peco/cmd/peco

簡単に動作確認。

ls | peco

これでファイルが一行ずつ選択できる。
選択したものが標準出力される。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?