I can’t believe I lived so long without looking for a fix to a common issue I have while in iTerm2. Maybe I’m running some GruntJS task that is updating the screen, but I want to do something in the CWD. So I would open another tab
⌘ + t, then
cd ... to my cwd.
Instead just tell iTerm you want new tabs to open in the CWD.
- Open up iTerm2 preferences
⌘ + ,
- Go to Profiles > General
- Now click on Edit under Advanced Configuration for Working Directory
- Now just select when you want it to open in the same directory like so
Now you have an extra 10 seconds a day to do with whatever you want…. live the freedom.
Did this help you out? It took me a few days to piece together all this information together, I hope this saves you some time (who knows, maybe the future me will be thankful I wrote this down). Let me know your thoughts. [email protected]