<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yunagi_n</author_name>
  <author_url>https://blog.hatena.ne.jp/yunagi_n/</author_url>
  <blog_title>なつねこメモ</blog_title>
  <blog_url>https://tech.natsuneko.blog/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>なんというか cat ~/.bash_history | rg hello みたいなことをやりたかっただけ。 ripgrep 前提。 function Search-History($query) { Get-Content (Get-PSReadLineOption).HistorySavePath | rg $query } これで Search-History next とかですると、 next を含んだコマンドが表示される。 おしまい。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.natsuneko.blog%2Fentry%2F2021%2F09%2F18%2Fsearch-command-history-in-powershell&quot; title=&quot;PowerShell で過去のコマンドヒストリーを検索したい - なつねこメモ&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>2021-09-17 15:00:00</published>
  <title>PowerShell で過去のコマンドヒストリーを検索したい</title>
  <type>rich</type>
  <url>https://tech.natsuneko.blog/entry/2021/09/18/search-command-history-in-powershell</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
