How many times will you hit the up arrow before you give up and type a command?
-
How many times will you hit the up arrow before you give up and type a command?
@zak Easily a hundred times if the command is too long to remember.
-
How many times will you hit the up arrow before you give up and type a command?
@zak Wait, you can just stop and type the command? How does that work?
-
How many times will you hit the up arrow before you give up and type a command?
@zak CTRL+r. Nuffsaid.
-
How many times will you hit the up arrow before you give up and type a command?
@zak I barely ever need that because fish has contextual history per folder.
-
How many times will you hit the up arrow before you give up and type a command?
@zak Hehe. Maybe 10-15
-
How many times will you hit the up arrow before you give up and type a command?
I know what I recently typed and hit up if I know where the command I need will be in the log. Am I weird?

-
How many times will you hit the up arrow before you give up and type a command?
@zak If I hold it down to scroll, does that count as "one"?
-
How many times will you hit the up arrow before you give up and type a command?
-
How many times will you hit the up arrow before you give up and type a command?
@zak Generally, it's close to 100 times. If I didn't get it, then I
cat ~/.zsh_history | grep <thing> -
How many times will you hit the up arrow before you give up and type a command?
@zak until the arrow doesn't work any more
-
How many times will you hit the up arrow before you give up and type a command?
@zak history | grep
-
How many times will you hit the up arrow before you give up and type a command?
@zak Thanks for posting this - after several years of using this particular MBP, I finally got around to enabling per-directory history in zsh.
This exact thing has been driving me nuts lately, but I hadn't realised how annoying it was until I started to type a reply.
-
@zak Thanks for posting this - after several years of using this particular MBP, I finally got around to enabling per-directory history in zsh.
This exact thing has been driving me nuts lately, but I hadn't realised how annoying it was until I started to type a reply.
@adam_caudill This is the smart thing to do for sure. I need to get around to doing this, too.
-
@zak Generally, it's close to 100 times. If I didn't get it, then I
cat ~/.zsh_history | grep <thing> -
How many times will you hit the up arrow before you give up and type a command?
@zak@infosec.exchange i usually just type the command, although admittedly i dont use terminal much these days
-
-
@adam_caudill This is the smart thing to do for sure. I need to get around to doing this, too.
@zak Luckily, I use oh-my-zsh, so enabling it was just adding the name of a plugin to the .zshrc - less than a minute from start to finish. That'll pay for itself within a day or so.
-
How many times will you hit the up arrow before you give up and type a command?
@zak just once more
-
How many times will you hit the up arrow before you give up and type a command?
-
How many times will you hit the up arrow before you give up and type a command?
@zak Onceβ¦
And then I remember that ^R using `fzf` is so much more effective!
(grep pattern file is the default, you don't have to pipe into it)