3 ms·
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?
by Toutouxc 6y ago
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?
- primozk 6y agoYou need oh-my-zsh
- JNRowe 6y ago'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.
- reportgunner 6y agoWorks in bash https://coderwall.com/p/oqtj8w/the-single-most-useful-thing-in-bash https://coderwall.com/p/oqtj8w/the-single-most-useful-thing-...