LoginSignup
7
6

More than 5 years have passed since last update.

fish + peco で git の色んなものを楽に選択する

Last updated at Posted at 2017-06-14

gitのブランチやファイル、コミットのハッシュ、タグをpecoで楽に選択できるプラグインを作ってみました
github: peco_select_git_misc

インストール

fisher tamanugi/peco_select_git_misc 

使い方

細かい関数に分かれているので、それぞれ適当なキーバインドに割り当てて使用してください

config.fish
function fish_user_key_bindings
  bind \cx\cb peco_select_git_branch
  bind \cx\cf peco_select_git_file
  bind \cx\cs peco_select_git_file_with_status
  bind \cx\ct peco_select_git_tag
  bind \cx\ch peco_select_git_hash
end

各関数の実行結果は既存のコマンドバッファに追加するようになっています

peco_select_git_misc.gif

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