Conversation

How many times will you hit the up arrow before you give up and type a command?

11
1
0

@zak Wait, you can just stop and type the command? How does that work?

0
1
0

@zak

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? bash

0
1
0

@zak If I hold it down to scroll, does that count as "one"?

0
1
0

@zak Generally, it's close to 100 times. If I didn't get it, then I cat ~/.zsh_history | grep <thing>

0
1
0
@zak I recently contemplated that this is essentially the same behavior as repeatedly prompting the slop machine. (the cmdline has the luxury of ctrl+r)
0
0
0

@zak I (ab)use ctrl-R instead even for short commands.

0
1
0

@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.

1
1
0

@adam_caudill This is the smart thing to do for sure. I need to get around to doing this, too.

1
1
0

@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.

0
1
0