Shellscript shortcut

Love the new way of creating a widget Jeremy. But since I’m an old guy I forget the syntax so I created a simple shellscript for Mac to execute the code. A few steps are required to make this work.
1) create a plain text file with the following lines:
#!/bin/zsh
npx @integrating-magic/create-js-in-fm-widget

2) Save the file (as plain text) with any name “filename.zsh” and the .zsh extension
3) Make the file executable with the following command “ chmod +x filename” (no quotes)
4) Invoke the file by calling it from its PATH. So if you are in the same directory that the file is located in then “./filename.zsh”

You can also add the file to your PATH to invoke it from anywhere.

If you are using the BASH shell then in the first line replace zsh with bash and change the extension from .zsh to .sh

That’s it! You don’t have to have VScode open create the repo.