Created
February 24, 2014 09:15
-
-
Save MBehtemam/9184342 to your computer and use it in GitHub Desktop.
Using Node with Harmony argument as powershell alias
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
First RUN : | |
function New-BashStyleAlias([string]$name, [string]$command) | |
{ | |
$sb = [scriptblock]::Create($command) | |
New-Item "Function:\global:$name" -Value $sb | Out-Null | |
} | |
Then : | |
New-BashStyleAlias nodeh 'node --harmony @args' | |
Now : | |
nodeh app //equal to node --harmony app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment