<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nonylene</author_name>
  <author_url>https://blog.hatena.ne.jp/nonylene/</author_url>
  <blog_title>Unyablog.</blog_title>
  <blog_url>https://nonylene.hatenablog.jp/</blog_url>
  <categories>
    <anon>Zsh</anon>
  </categories>
  <description>自分は ZSH のプロンプトを以下のように設定して、 現在 root user かどうかを判別できるようにしている。 PROMPT='${prompt_header} %~ %(!. !root! #.&gt;) ' ! は Shell が権限を持ってる時に true になり、その時は ! root ! # が、そうでない時は &gt; を出すようになる。 zsh.sourceforge.io ここで devcontainer で ZSH を立ち上げたとき、vscode user なのにプロンプトが ! root ! # になっていた。 理由としては ZSH のプロセスに SYS_PTRACE が設定され…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnonylene.hatenablog.jp%2Fentry%2F2025%2F08%2F27%2F201259&quot; title=&quot;devcontainer で ZSH のプロンプトが root 用になってしまう対策 - Unyablog.&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>2025-08-27 20:12:59</published>
  <title>devcontainer で ZSH のプロンプトが root 用になってしまう対策</title>
  <type>rich</type>
  <url>https://nonylene.hatenablog.jp/entry/2025/08/27/201259</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
