<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jspnet</author_name>
  <author_url>https://blog.hatena.ne.jp/jspnet/</author_url>
  <blog_title>Smile Engineering Blog</blog_title>
  <blog_url>https://smile-jsp.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>はじめに みんな大好き git-worktree。中でも list は使用頻度の高いコマンドですが、リスト後に cd することが多いのでこのような関数を利用しています。 こんなの zsh 用です。 .zshrc あたりに書いておきます。関数名は gitw としてますが好きに変えてください。 function gitw { lines=( ${(@f)&quot;$(git worktree list)&quot;} ) for (( i=1; i&lt;=$#lines; i+=1 )); do echo -n &quot;$i: &quot; echo $lines[$i] done echo -n &quot;? &quot; read n expr $…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsmile-jsp.hateblo.jp%2Fentry%2F2019%2F07%2F08%2F232315&quot; title=&quot;git worktree list を少しだけ使いやすく - Smile Engineering Blog&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-08 23:23:15</published>
  <title>git worktree list を少しだけ使いやすく</title>
  <type>rich</type>
  <url>https://smile-jsp.hateblo.jp/entry/2019/07/08/232315</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
