
#GO2SHELL WINDOWS EQUIVALENT MAC OS X#
Environment VariableĪnyway, I think the previous are very complicated "solutions", while you only want to simplify your command. If you are a Mac OS X user, you might have faced difficulty in opening a new terminal window from the current folder or directory on your desktop. I don't have npm on me right now, but I tested with other program and it looks like it would work. Make batch file run in the background of the command prompt while continuing to use command prompt.

Save it as npmbin.cmd in your path, then you could run: npmbin.cmd grunt buildįor your case, you should be able to invoke it through powershell using the invoke-expression cmdlet: iex "$(npm bin)\grunt build" commond+Go2Shell. Windows: equivalent of OS X's Terminal '&' 0. but unfortunately it starts failing later after new Finder windows are opened: Can’t make class cfol of window 1 of application 'Finder' into. You could generate a script that receives the parameter and runs the command, something like :: Takes the parameters and send to npm bin outputįor /f "tokens=*" %%n in ('npm bin') do %2 %3 %4 %5) Hi This seems great and it seems to be working at first (immediately after installation). Or inside a batch file you have to duplicate the %: for /F "tokens=*" %%n IN ('npm bin') DO build) However there is a hack that you may use for your case (as npm bin only returns one line): for /F "tokens=*" %n IN ('npm bin') DO build)


As they already stated in the comments, there is no native way of doing this with cmd.
