Created
January 12, 2019 05:43
-
-
Save corbob/038d4f81a031f1dca5750082b82c7e05 to your computer and use it in GitHub Desktop.
install the last searched choco package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ci { | |
$lastCommand = Get-History -Count 1 | |
$newCommand = $lastCommand.CommandLine.Replace('clist','cinst').Replace('choco list','choco install') | |
Invoke-Expression $newCommand | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment