Some of the things I like in Bash and would love to know how to do in PowerShell:
In Bash, I have history scrolling set up so that it only scrolls commands that begin with the same prefix as the current line. If I want to see my latest commit (e.g. to reuse part of the comment) I write 'git' and then ↑.
Related is of course the history search with Ctrl + R
To find other things, I write:
h | grep fooIn PowerShell I use:
h -c 1000 | where {$_.commandline.contains("foo")}(obviously I'm a newbie, there must be a shorter way)
Things like:
mv file.txt{,.bak}or
mv file.txt !#$.bakMagic space (that expands
!$inline)
What are the alternatives in PowerShell?