Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PowerShell history of commands

Tags:

powershell

I use Bash and PowerShell interchangeably, and find it quite annoying when I can't do a Ctrl+R on my PowerShell Console.

Is there a plugin/alternate command that can help me switch between Bash and PowerShell seamlessly?

Update (2018)

PowerShell now supports Ctrl + R. Please see this answer.

like image 993
Srikanth Venugopalan Avatar asked Aug 15 '13 02:08

Srikanth Venugopalan


1 Answers

An alternate command is to type e.g #ls and press Tab keep pressing tab to cycle through all command history that starts with ls.

In previous versions you could type ls then F8 to match history. Keep pressing F8 to cycle through multiple matches.

Note:ls is just a placeholder in this case. Replace it with any command you want.

like image 148
Keith Hill Avatar answered Nov 13 '22 07:11

Keith Hill