<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>buty4649</author_name>
  <author_url>https://blog.hatena.ne.jp/buty4649/</author_url>
  <blog_title>ぶていのログでぶログ</blog_title>
  <blog_url>https://tech.buty4649.net/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>オペレーション</anon>
  </categories>
  <description>bashやzsh、fishなどではコマンドラインの先頭に空白をつけることで、そのコマンドラインだけhistoryに残さないという機能がある。 以下、fishでの実行例。 # 通常の操作だとhistoryに残る ❯ echo hello hello ❯ history -n 1 echo hello # 頭に空白を入れる(可視化のために空白を△に置換) ❯ △echo world world # echo world が残っていない ❯ history -n 1 history -n 1 今までトークンやパスワードを環境変数にセットするときにこの機能を使って履歴を残さないようにしていた。 しかし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.buty4649.net%2Fentry%2F2022%2F02%2F21%2F140107&quot; title=&quot;再起動/削除/変更コマンドの頭に空白をつける - ぶていのログでぶログ&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>2022-02-21 14:01:07</published>
  <title>再起動/削除/変更コマンドの頭に空白をつける</title>
  <type>rich</type>
  <url>https://tech.buty4649.net/entry/2022/02/21/140107</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
