With zsh / oh-my-zsh / iterm2, a great way to navigate through the history of terminal commands.
If I issued a command to say knife cookbook upload applicationa few days before and get a command, I can keither knior or knifand press the up arrow key, it will iterate over the command history, starting with the word knife.
But if similar commands are started, starting with knife, I will have to iterate over the commands using the up arrow key.
But if I wanted to search for more than one word, say, to get commands with knife node, zsh does not support this and starts showing commands starting with only knife.
So, is there a way to get commands starting with two words? so I just type two words and press the up arrow to show only those commands that start with the two words entered.
source
share