{"author_url":"https://blog.hatena.ne.jp/yunagi_n/","version":"1.0","url":"https://tech.natsuneko.blog/entry/2021/09/18/search-command-history-in-powershell","blog_url":"https://tech.natsuneko.blog/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.natsuneko.blog%2Fentry%2F2021%2F09%2F18%2Fsearch-command-history-in-powershell\" title=\"PowerShell \u3067\u904e\u53bb\u306e\u30b3\u30de\u30f3\u30c9\u30d2\u30b9\u30c8\u30ea\u30fc\u3092\u691c\u7d22\u3057\u305f\u3044 - \u306a\u3064\u306d\u3053\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"yunagi_n","published":"2021-09-17 15:00:00","provider_url":"https://hatena.blog","title":"PowerShell \u3067\u904e\u53bb\u306e\u30b3\u30de\u30f3\u30c9\u30d2\u30b9\u30c8\u30ea\u30fc\u3092\u691c\u7d22\u3057\u305f\u3044","blog_title":"\u306a\u3064\u306d\u3053\u30e1\u30e2","height":"190","description":"\u306a\u3093\u3068\u3044\u3046\u304b cat ~/.bash_history | rg hello \u307f\u305f\u3044\u306a\u3053\u3068\u3092\u3084\u308a\u305f\u304b\u3063\u305f\u3060\u3051\u3002 ripgrep \u524d\u63d0\u3002 function Search-History($query) { Get-Content (Get-PSReadLineOption).HistorySavePath | rg $query } \u3053\u308c\u3067 Search-History next \u3068\u304b\u3067\u3059\u308b\u3068\u3001 next \u3092\u542b\u3093\u3060\u30b3\u30de\u30f3\u30c9\u304c\u8868\u793a\u3055\u308c\u308b\u3002 \u304a\u3057\u307e\u3044\u3002","type":"rich","width":"100%","provider_name":"Hatena Blog","image_url":null,"categories":["PowerShell"]}