Re:Zsh Tricks to Blow Your Mind
by Toutouxc on Thursday February 18, 2021 @05:18AM
(#26178127)
The #2 behavior (up-down arrow cycles through usages of command) doesn't work OOTB on macOS's zsh. Is it a new-ish feature or a plugin that I don't have?
[ Parent
| on HN ]
'bindkey "${key[Up]}" up-line-or-search' is probably the incantation you're looking for if you don't want to use oh-my-zsh or whatever. The $key hashmap is generated by zsh's zkbd so that your config can be terminal independent, but you can insert the actual key if you prefer not to use zkbd or only use one terminal type.
There are a bunch of other search types available, zshzle(1) has all the gory details.
Re:Zsh Tricks to Blow Your Mind
by reportgunner on Thursday February 18, 2021 @07:41AM
(#26179132)