does anybody knows of a way to have the backward command search feature of bash [Ctrl-r]
(and [Ctrl-o]
) that are so useful, in windows powershell ?
C-r
is a more powerful arrow up
history manipulation, it is like emacs's C-r
in that it searches backward inside the commands you previously entered. Then C-o
executes that command and immediately places on the line the next command after that. So that you can repeat passed series of commands efficiently. Also it looks up into a saved history, not a session history. (~/.bash_history
file). Which is infinitely useful.
thanks.
ps: as a bonus the tab completion not working by cycles would be awsome also.
PSConsoleHostReadline
that could be useful. A good place to start would be to use PSReadLine, which uses that hook. PSReadLine doesn't support ctrl-o, but it does support ctrl-r (supposedly -- it didn't work for me). I may have a look at implementing ctrl-o over Christmas because it does sound useful. – dangph Nov 21 '13 at 0:08