{"url":"https://www.mizdra.net/entry/2024/10/19/172323","height":"190","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/m/mizdra/20241019/20241019172301.png","version":"1.0","author_name":"mizdra","type":"rich","width":"100%","provider_name":"Hatena Blog","categories":["terminal","shell"],"provider_url":"https://hatena.blog","description":"\u4eca\u307e\u3067 id:mizdra \u306f\u30bf\u30fc\u30df\u30ca\u30eb\u3067 Git \u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u308b\u3068\u304d\u306b\u3001zsh + peco \u3092\u4f7f\u3063\u305f Git \u30d6\u30e9\u30f3\u30c1\u691c\u7d22\u7528\u306e\u30ad\u30fc\u30d0\u30a4\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u3002 # .zshrc function select-git-branch() { selected_branch=$(git branch | cut -c 3- | peco) BUFFER=\"${LBUFFER}${selected_branch}${RBUFFER}\" CURSOR=$#LBUFFER+$#selected_branch zle redisplay } zle -N select-git-branch bind\u2026","blog_title":"mizdra's blog","blog_url":"https://www.mizdra.net/","published":"2024-10-19 17:23:23","author_url":"https://blog.hatena.ne.jp/mizdra/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mizdra.net%2Fentry%2F2024%2F10%2F19%2F172323\" title=\"zsh + fzf \u3067\u300c\u3042\u306e\u6642\u4f5c\u696d\u3057\u3066\u3044\u305f\u3042\u306e\u30d6\u30e9\u30f3\u30c1\u300d\u3092\u5feb\u9069\u306b\u63a2\u3059 - mizdra&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"zsh + fzf \u3067\u300c\u3042\u306e\u6642\u4f5c\u696d\u3057\u3066\u3044\u305f\u3042\u306e\u30d6\u30e9\u30f3\u30c1\u300d\u3092\u5feb\u9069\u306b\u63a2\u3059"}