Friday, May 6, 2011

$$ Recursion?

After reading Lee Holmes $$ blog post, I realized the $$ command has some recursive properties.
You can assign a function to the $$ variable and then init that function as follows:



Function Repeat-History
{
$$='function gh {get-history}'
Invoke-History $$
gh
}