Skip to content

Instantly share code, notes, and snippets.

@MBehtemam
Created February 24, 2014 09:15
Show Gist options
  • Save MBehtemam/9184342 to your computer and use it in GitHub Desktop.
Save MBehtemam/9184342 to your computer and use it in GitHub Desktop.
Using Node with Harmony argument as powershell alias
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