<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hogashi</author_name>
  <author_url>https://blog.hatena.ne.jp/hogashi/</author_url>
  <blog_title>hogashi.*</blog_title>
  <blog_url>https://blog.hog.as/</blog_url>
  <categories>
    <anon>Git</anon>
    <anon>シェル</anon>
  </categories>
  <description>git worktree list は素朴すぎてむずいので peco で pushd できるようにした。先駆者はたくさんいるが、僕も前に ghq list でやったことがあったのでそれをコピペして使っている。 コミットハッシュとかブランチ名とかも出るけど、あったほうが当然わかりやすいので出す。絞り込むときはブランチ名でやるだろうし……。 function gw() { ARG_STR=&quot;$@&quot; PECO_RESULT=$(git worktree list | peco --query &quot;$ARG_STR&quot;) PECO_RESULT=$(echo -n &quot;${PECO_RESULT}&quot; | a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hog.as%2Fentry%2F2026%2F07%2F29%2F172028&quot; title=&quot;bashでgit worktreeを使うとき不便なのでpecoでpushdするコマンドつくったりPS1いじったりした - hogashi.*&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hogashi/20260729/20260729171450.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-07-29 17:20:28</published>
  <title>bashでgit worktreeを使うとき不便なのでpecoでpushdするコマンドつくったりPS1いじったりした</title>
  <type>rich</type>
  <url>https://blog.hog.as/entry/2026/07/29/172028</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
