Go追加
$ wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz $ tar zxvf go1.2.1.linux-amd64.tar.gz $ sudo mv go /usr/local
各種設定
export PATH=$PATH:/usr/local/go/bin export GOPATH=~/gocode export PATH="$PATH:$GOPATH/bin" function peco-select-history() { local tac if which tac > /dev/null; then tac="tac" else tac="tail -r" fi BUFFER=$(\history -n 1 | \ eval $tac | \ peco --query "$LBUFFER") CURSOR=$#BUFFER zle clear-screen } zle -N peco-select-history bindkey '^r' peco-select-history
oh-my-zshのhistoryにはエイリアスがかかっているので、\で解除してやるのはお約束。
$ source ~/.zshrc
$ go get github.com/peco/peco/cmd/peco
ヒャッハァァァー