LoginSignup
3
4

More than 5 years have passed since last update.

bundleしてるgemにcdする。pecoで絞り込みつつ

Last updated at Posted at 2015-02-01

bundle show [GEM名]でフルパス取得できるので、peco使う場合、こんなのでいいではないか

cd $(bundle show | sed -e '1d' | cut -d'*' -f2 | cut -d' ' -f2 | peco | xargs bundle show) 

peco_bundle.gif

【追記】

以下でも同様のことが実現できるしコードが短い、 @masutaka thx!

cd $(bundle show --paths | peco)

.zshrcに書く場合の参考

3
4
4

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
4