{"description":"\u4ee5\u4e0b\u3067\u793a\u3059\u3088\u3046\u306b PS1 \u3067 bash \u30b7\u30a7\u30eb\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 ramesh@dev-db ~> function httpdcount { > ps aux | grep httpd | grep -v grep | wc -l > } ramesh@dev-db ~> export PS1=\"\\u@\\h [`httpdcount`]> \" ramesh@dev-db [12]> [Note: \u3053\u308c\u306f\u5b9f\u884c\u4e2d\u306e httpd \u30d7\u30ed\u30bb\u30b9\u306e\u7dcf\u6570\u3092\u8868\u793a\u3057\u307e\u3059]\u3053\u306e\u5909\u66f4\u3092\u6c38\u7d9a\u5316\u3059\u308b\u305f\u3081\u306b ~/.bash_profile \u3042\u308b\u3044\u306f ~/.bashrc \u306b\u6b21\u306e\u884c\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059: $ vi .b\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbobchin.hatenadiary.org%2Fentry%2F20090524%2F1243163033\" title=\"Hack 42. PS1 \u5909\u6570\u5185\u306b bash \u30b7\u30a7\u30eb\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b - bobchin\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/bobchin/","type":"rich","blog_url":"https://bobchin.hatenadiary.org/","categories":["Linux","\u7ffb\u8a33","Linux 101 Hacks"],"blog_title":"bobchin\u306e\u65e5\u8a18","height":"190","author_name":"bobchin","published":"2009-05-24 20:03:53","provider_name":"Hatena Blog","width":"100%","provider_url":"https://hatena.blog","title":"Hack 42. PS1 \u5909\u6570\u5185\u306b bash \u30b7\u30a7\u30eb\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b","version":"1.0","url":"https://bobchin.hatenadiary.org/entry/20090524/1243163033","image_url":null}