<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mrkn</author_name>
  <author_url>https://blog.hatena.ne.jp/mrkn/</author_url>
  <blog_title>ドレッシングのような</blog_title>
  <blog_url>https://mrkn.hatenadiary.org/</blog_url>
  <categories>
    <anon>bash</anon>
    <anon>shell</anon>
  </categories>
  <description>bash のプロンプトを次のように変更し、カレントディレクトリをプロンプト行に右寄せで表示するようにしてみた。これでプロンプトがバカみたいに長くならない。さらに、左側に時刻 (date +%H:%M:HS) とコマンド番号 (\#) を出してみた。コマンド番号は、ヒストリ番号 (\H) と迷った。どっちが良いのかは今はよく分かっていない。 WORKING_DIRECTORY='\[\e[$[COLUMNS-$(echo -n &quot; (\w)&quot; | wc -c)]C\e[1;35m(\w)\e[0m\e[$[COLUMNS]D\]' PS1=${WORKING_DIRECTORY}'${debia…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmrkn.hatenadiary.org%2Fentry%2F20090121%2Fthe_prompt_of_bash&quot; title=&quot;bash のプロンプトを変更した - ドレッシングのような&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>http://img.skitch.com/20090121-kpbya19y22kpntuxy1qt4jg7p3.preview.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-01-21 00:00:00</published>
  <title>bash のプロンプトを変更した</title>
  <type>rich</type>
  <url>https://mrkn.hatenadiary.org/entry/20090121/the_prompt_of_bash</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
