LoginSignup
0
0

More than 5 years have passed since last update.

GHQとpecoでリポジトリ移動で楽する人様の設定を少しだけいぢって自分用にした

Posted at

http://qiita.com/strsk/items/9151cef7e68f0746820d
こちらを参考にさせていただいた。

あとは変更したfunctionを一応残しておく。

function peco-src () {
  local selected_dir=$(ghq list | peco --query "$LBUFFER")
  if [ -n "$selected_dir" ]; then
      BUFFER="ghq look ${selected_dir}"
      zle accept-line
  fi
  zle clear-screen
}
zle -N peco-src
bindkey '^]' peco-src

pecoとの組み合わせをモタモタしていたんだけど、いい加減面倒になってきたのでこちらを参考に設定して幸せになれた。
感謝。

0
0
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
0
0