Equivalent of bash’s Ctrl-r in PowerShell

bashhistorykeyboard shortcutspowershell

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.

Best Answer

Type first letters of the command and press F8.

Alternatively you can press F7 and type first letters.

More details: http://technet.microsoft.com/en-us/magazine/ff678293.aspx