<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minus9d</author_name>
  <author_url>https://blog.hatena.ne.jp/minus9d/</author_url>
  <blog_title>minus9d's diary</blog_title>
  <blog_url>https://minus9d.hatenablog.com/</blog_url>
  <categories>
    <anon>zsh</anon>
  </categories>
  <description>zshで過去のコマンド履歴を検索する機能（数文字タイプしてCtrl + R）を頻繁に使う人なら、自分の打ったコマンドにコメントを打って検索のキーワード代わりにしたいことがあるかもしれません。例えばこんな風に： ls -1 # print one entry per line しかし普通は以下のようなエラーが出て、行の実行に失敗します（履歴には残りますが）。 zsh: bad pattern: # コメント機能を有効にするには.zshrcに以下の1行を加えます。 setopt interactivecomments これでコマンドを実行しつつ、コメントを残すことができるようになります。 参考 C…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminus9d.hatenablog.com%2Fentry%2F2015%2F01%2F14%2F234726&quot; title=&quot;zshで、コマンドライン実行時にもコメントを使えるようにする - minus9d&amp;#39;s diary&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>2015-01-14 23:47:26</published>
  <title>zshで、コマンドライン実行時にもコメントを使えるようにする</title>
  <type>rich</type>
  <url>https://minus9d.hatenablog.com/entry/2015/01/14/234726</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
