1
0

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.

fish shell でgitレポジトリを一瞬でサーチ & ジャンプ

Posted at

目的

複数のgitレポジトリをクローンして使っていると、どこからでもサクサク目的レポジトリに飛びたいもの。

準備

pecoghqが必要。
Macなら

$ brew install peco
$ brew install ghq

でインストール。

config.fish

以下のように記述。

...
alias gj "ghq_jump" 
...
function ghq_jump
  cd (ghq list --full-path | peco)
end
...

config.fish をリロード。

$ source ~/.config/fish/config.fish

使い方

$ gj

でレポジトリ一覧が表示される。目的のレポジトリ名をfilterして選択してenterで飛べ!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?