{"height":"190","version":"1.0","provider_name":"Hatena Blog","image_url":null,"published":"2017-01-25 00:01:00","author_url":"https://blog.hatena.ne.jp/shigemk2/","url":"https://www.shigemk2.com/entry/git_checkout_peco_fish","provider_url":"https://hatena.blog","width":"100%","description":"\u306f\u3066\u306a\u8a18\u6cd5\u3067fish\u306f\u4f7f\u3048\u306a\u3044\u3002 function peco-git-checkout git branch -a | peco | tr -d ' ' | read branch echo $branch if [ $branch ] if contains $branch \"remotes/\" set -l b (echo $branch | awk -F'/' '{print $3}') git checkout -b $b $branch else git checkout $branch end end commandline -f repaint end function fish\u2026","title":"peco\u3067git checkout\u3057\u305f\u3044 fish-shell\u3067","type":"rich","author_name":"shigemk2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2Fgit_checkout_peco_fish\" title=\"peco\u3067git checkout\u3057\u305f\u3044 fish-shell\u3067 - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["fish"],"blog_url":"https://www.shigemk2.com/","blog_title":"by shigemk2"}