4 ms·
>2. Ability to search history from a partial command like `git checkout`, where up arrow would step backward from the present. We have that feature, and it's e
by faho 9y ago
>2. Ability to search history from a partial command like `git checkout`, where up arrow would step backward from the present.
We have that feature, and it's enabled by default. Just type the partial commandline and press up-arrow. Or do you mean something slightly different?
- themistocle 9y agoThat's true. Sorry for my poorly-worded English. For a small example: $ ls -la foo $ ls -la bar $ ls -la / When I type `ls -l` and hit the up arrow, my first result is `ls -la bar` not `ls -la /`. This is a small problem but sometimes annoying, especially after using other shells that work differently.
- faho 9y agoIn this case, what most likely happens is that the first result is offered as the suggestion - i.e. the greyed-out part in the commandline. To accept that, press right-arrow (with the default bindings, of course).
- themistocle 9y agoThanks for the suggestion.