<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cooldaemon</author_name>
  <author_url>https://blog.hatena.ne.jp/cooldaemon/</author_url>
  <blog_title>cooldaemonの備忘録</blog_title>
  <blog_url>https://cooldaemon.hatenadiary.org/</blog_url>
  <categories>
    <anon>git</anon>
    <anon>zsh</anon>
  </categories>
  <description>下記を参考に、自分なりにやってみたんだけど・・・ show current git branch on zsh prompt (2) - Bart's Blog function git_branch() { local git_dir branch git_dir=$(git rev-parse --git-dir 2&gt; /dev/null) || return if test -d &quot;$git_dir/../.dotest&quot;; then branch=&quot;$(git symbolic-ref HEAD 2&gt;/dev/null)&quot; elif test -f &quot;$git_dir/.dotest-…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcooldaemon.hatenadiary.org%2Fentry%2F20080516%2F1210909583&quot; title=&quot;左プロンプトに git のブランチとステータスを、右プロンプトに git リポジトリとそれ以外のディレクトリを色分けして表示 - cooldaemonの備忘録&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>2008-05-16 12:46:23</published>
  <title>左プロンプトに git のブランチとステータスを、右プロンプトに git リポジトリとそれ以外のディレクトリを色分けして表示</title>
  <type>rich</type>
  <url>https://cooldaemon.hatenadiary.org/entry/20080516/1210909583</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
