Quantcast
Channel: A Portal to a Portal
Viewing all articles
Browse latest Browse all 1850

TIL - Searching back through zsh history on macOS

$
0
0

A friend just showed me a rather nifty CLI hack on macOS.

With an iTerm session going, hit [ctrl][r] and search back through zsh history

So, as per the screenshot, I hit that sequence and typed in kube - at which point zsh showed me all of my recent kubectl commands, allowing me to use [ctrl] [r] to toggle back through only those commands: -






which is nice

Thanks Jordan 😁


Viewing all articles
Browse latest Browse all 1850

Trending Articles