<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>daichi703n</author_name>
  <author_url>https://blog.hatena.ne.jp/daichi703n/</author_url>
  <blog_title>designetwork </blog_title>
  <blog_url>https://designetwork.daichi703n.com/</blog_url>
  <categories>
    <anon>OS</anon>
    <anon>OS-Mac</anon>
  </categories>
  <description>Macのzshで上キーでコマンド履歴をたどるときに、同じコマンドを複数回打った履歴を除外する。 ネットワークエンジニアだと複数のコマンドを繰り返し実行するようなケースが多い。例えば、pingやtracerouteで複数への疎通・経路確認を繰り返すパターンなど。 デフォルトだと、このように、同じコマンドを複数回実行した場合は全て履歴に保存される。そのため、ターミナルで履歴をたどるときに上キーを押す回数が多くなってしまう。 $ history 174 traceroute google.com 175 traceroute google.com 176 traceroute google.com …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdesignetwork.daichi703n.com%2Fentry%2F2017%2F09%2F18%2Fmac-zsh-history-dups&quot; title=&quot;Macのzshでコマンド履歴(上キー・history)の重複を排除する - designetwork &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>https://cdn-ak.f.st-hatena.com/images/fotolife/d/daichi703n/20170918/20170918184900.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-09-18 18:50:06</published>
  <title>Macのzshでコマンド履歴(上キー・history)の重複を排除する</title>
  <type>rich</type>
  <url>https://designetwork.daichi703n.com/entry/2017/09/18/mac-zsh-history-dups</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
