<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bobchin</author_name>
  <author_url>https://blog.hatena.ne.jp/bobchin/</author_url>
  <blog_title>bobchinの日記</blog_title>
  <blog_url>https://bobchin.hatenadiary.org/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>翻訳</anon>
    <anon>Linux 101 Hacks</anon>
  </categories>
  <description>以下で示すように PS1 で bash シェル関数を実行することもできます。 ramesh@dev-db ~&gt; function httpdcount { &gt; ps aux | grep httpd | grep -v grep | wc -l &gt; } ramesh@dev-db ~&gt; export PS1=&quot;\u@\h [`httpdcount`]&gt; &quot; ramesh@dev-db [12]&gt; [Note: これは実行中の httpd プロセスの総数を表示します]この変更を永続化するために ~/.bash_profile あるいは ~/.bashrc に次の行を追加できます: $ vi .b…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbobchin.hatenadiary.org%2Fentry%2F20090524%2F1243163033&quot; title=&quot;Hack 42. PS1 変数内に bash シェル関数を使用する - bobchinの日記&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>2009-05-24 20:03:53</published>
  <title>Hack 42. PS1 変数内に bash シェル関数を使用する</title>
  <type>rich</type>
  <url>https://bobchin.hatenadiary.org/entry/20090524/1243163033</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
