How to get react-native run-ios to open in iTerm instead of Terminal on a macOS?
Daniel's solution worked, but as soon as I reinstalled node_modules
it stopped working.
To make the change persistent, right-click on launchPackager.command
in node_modules/react-native/scripts/
and choose Get Info… Then change the "Open with:" section to iTerm, and click on Change All…
The packager is started by executing open $PROJECT/node_modules/react-native/scripts/launchPackager.command
, so whatever program is associated with *.command will be started. You can change the association:
- Open Finder
- Navigate to $PROJECT/node_modules/react-native/scripts/ (or simply create an empty file with the .command extension anywhere)
- Right click launchPackager.command
- Press the OPTION key
- Under "Always open with..." you can select iTerm