Observe ZDNET: Add us as a most popular supply on Google.
ZDNET’s key takeaways
- One-click iTerm2 setup launches Claude initiatives, making a coding hub.
- Profiles auto-load context and reminiscence recordsdata on startup.
- Colour-coded tabs eradicate venture confusion immediately.
Positive, vibe coding is a strong instrument that may save time in comparison with hand-cutting code line by line. However anybody who has constructed something with vibe coding can let you know this: there’s nonetheless a number of work concerned.
For the previous few months, I have been utilizing Claude Code to construct two apps that may ultimately be delivered for Mac, iPhone, iPad, and Apple Watch. One has reached the testing stage, whereas one other remains to be very a lot in early-stage improvement.
At first, I did what everybody does after they begin utilizing Claude Code. I used a terminal window. However my Claude Code work truly entails working in three contexts, one for every of the 2 apps I am constructing and one which’s one stage up and might take a look at each apps.
No matter listing you are in while you launch Claude Code turns into the venture’s dwelling listing. It is the listing Claude appears to be like in for the CLAUDE.MD file, which tells the AI about your venture. Claude treats this present working listing as the foundation listing in your venture.
In my case, /Customers/david/Paperwork/Improvement/xcode holds each venture directories, MyFilamentStash and MySewingPatternStash.
For months, my course of was to open Terminal, change listing (utilizing the cd command) to one of many three directories, launch Claude, and supply a set of startup instructions to assist the session stand up to hurry with earlier work.
Then, if I wished to change to a special context, I stop Claude, issued a cd to a different venture listing, and did the identical. I do know. It is cumbersome. I additionally know I might have had a number of terminal home windows open directly, however I discovered myself getting confused about which venture was lively at any given time.
Although I used to be vibe coding and the AI was writing the precise code, it was nonetheless time to optimize my work atmosphere.
iTerm2 vs. Mac Terminal
The Mac’s native Terminal utility has come a good distance because the early days of the Mac. The app helps tabs, profiles, and plenty of configuration choices. However iTerm2, a free, GPL-licensed, open-source terminal program, is much more configurable. Plus, iTerm2 has vertical panes along with tabs, which may come in useful once in a while.
Through the years, I’ve typically used Mac Terminal for system-level tweaks to my Mac and iTerm2 when utilizing the command line for coding work. That is not a obligatory distinction, nevertheless it’s what my apply has been.
I will be discussing the best way to arrange iTerm2 for an optimum vibe-coding startup, however Mac Terminal’s profile options help an identical set of capabilities. You may get to these capabilities from the Settings menu.
Home windows Terminal additionally helps this sort of profile customization. You possibly can handle these settings by clicking the dropdown arrow subsequent to the tabs and deciding on Settings in Home windows Terminal.
Colour coding the tabs
For my improvement course of, I arrange 4 profiles in iTerm2. You get to profiles by deciding on the Settings menu after which tapping the profiles icon. As talked about above, I’ve one profile for every venture, one for the mother or father of each initiatives, and one which works in my Mac dwelling listing in case I must do something there.
For readability, I’ve color-coded every profile. That strategy makes it instantly clear what venture I am engaged on when in that tab. The 2 initiatives have distinct shade identities. The filament venture is blue and gold with jewel tones. The stitching patterns venture is in pinks and purples.
I utilized these shade identities to the terminal profiles. You possibly can see the colour distinction beneath. This course of is how I arrange the profile for my filament app venture. Be aware the blue and gold hues taken from the app consumer interface. You possibly can see that even the tab itself matches the colour theme:
Against this, observe the purple and pink taken from the stitching sample app. You possibly can see the tab can also be purple for this venture:
This sort of shade differentiation makes it tremendous straightforward to inform which venture I am engaged on at any time. Establishing is straightforward. Open Settings in iTerm2, click on Profiles, after which the Colours tab. Go down the web page and select the colours you need in your profile:
To set the tab shade, scroll all the best way down and select a customized tab shade:
I selected a inexperienced background with yellow textual content when working within the mother or father listing of the 2 initiatives. And I gave the /Customers/David profile a black background with brilliant inexperienced textual content.
Tweaking textual content dimension
You can too customise the font and dimension for every profile. I’ve a big display screen, so I wished my textual content pretty giant. I picked the font and dimension I preferred and duplicated it for every profile. You specify textual content dimension by selecting Profiles→Textual content after which taking place to the Font selector:
Setting every profile’s beginning listing
As I discussed earlier, Claude treats the present working listing when it launches as the foundation of the present venture. To robotically choose the appropriate listing at startup, I set my listing alternative in every profile.
This activity can also be completed in Settings→Profiles. This time, keep within the Profiles→Normal tab. Be sure that Profile Sort is ready to Terminal (at 1), after which go right down to Preliminary Listing→Superior Configuration (at 2) and hit Edit:
Subsequent, for the present venture whose profile you are in, paste the total path to that venture into all three Working Listing fields. All three Working Listing fields will get the identical path. That manner, you may all the time be working within the venture folder in your present venture:
Auto-configuring Claude periods
For optimum productiveness, I wished Claude totally arrange as quickly as I tapped the iTerm2 icon in my Mac’s dock. To take this strategy, I arrange every profile to run a command line as quickly as iTerm2 launched.
This activity is completed by setting Command to Login Shell on the Normal tab of the profile, then pasting a “Ship textual content at begin” line that is a command line to be executed at profile launch:
The command line consists of three elements: selecting the venture listing, clearing the display screen, and launching Claude with a beginning immediate.
Let’s check out that preliminary command:
cd /Customers/david/Paperwork/Improvement/xcode/MySewingPatternStash && clear && claude "New session beginning. Learn each reminiscence file within the reminiscence listing one after the other utilizing the Learn instrument, not simply the MEMORY.md index. Verify git standing for any uncommitted work. Then give me a short standing report: the place we left off, what's pending, and whether or not there are uncommitted modifications."
You might need seen that the command begins with one other cd. That occurs as a result of I discovered that the change listing command did not constantly run earlier than iTerm2 invoked Claude except I used a belt-and-suspenders strategy to picking the beginning listing. So, I set cd as an choice, as described within the earlier part, and in addition put it right here within the command line itself.
Subsequent, I execute a transparent. This step cleans up the terminal display screen of among the startup cruft I do not need to see. After that, I launch Claude and provides it a reasonably in depth immediate.
The immediate tells Claude to learn all my startup notes (known as reminiscence recordsdata within the reminiscence listing). That is a part of my tactic utilizing Claude. I’ve the AI file a number of notes. This course of each offers me a standing report and helps Claude stand up to hurry on what occurs subsequent.
One final trick is the usage of the && operator. In bash and different shells, the semicolon separates instructions in a sequence. However the gotcha is that even when an earlier command fails, the later instructions will run. Against this, the && operator solely runs subsequent instructions if earlier instructions return an exit standing that signifies success.
So now, when every profile is instantiated, the command that launches Claude within the correct listing runs, and Claude does a deep dive, bringing itself on top of things on the venture’s standing.
This is an instance of the startup standing for the stitching sample venture:
Bringing all of it collectively
By this level, we’ve got every venture’s UI color-coded to the app that is being labored on, and Claude is launching with a related immediate when the profile is initialized. All that is left to do is have all 4 profiles launch robotically when iTerm2 is clicked within the dock.
To do that step, first arrange iTerm2 so it is the best way you need it when launched. In my case, that is with all 4 profiles opened. I would like the Residence profile tab on the left, the mother or father profile tab on the appropriate, and the 2 apps themselves within the center tabs. I additionally moved the window to the place I would prefer it to be on the display screen when it launches.
This step is configured within the Settings→Preparations tab of iTerm2. As soon as your window is positioned the place you need it, with all of the tabs open and organized as you would like, go to Preparations and Set Default. This transfer will lock within the present association and open all the things this fashion everytime you launch iTerm2.
1-click to regulate all of them
That is it. All it takes now could be one click on on my dock icon, and iTerm2 goes to city. It units up all my tabs, units each to the correct venture listing, and launches three situations of Claude.
Then, every Claude occasion digs into its personal venture, brings itself totally again on top of things on what it must know for the present work session, and presents a venture standing abstract.
It takes a couple of minutes for this complete course of to run, nevertheless it saves me a ton of clicks. Whereas the varied Claudes are coming on top of things and briefing me on the standing, I can have a few sips of espresso to prepare for a brand new improvement session.
Now, you possibly can, too.
How a lot time do you suppose a one-click, multi-session Claude setup would save in your every day coding workflow? Tell us within the feedback beneath.
You possibly can observe my day-to-day venture updates on social media. Remember to subscribe to my weekly replace publication, and observe me on Twitter/X at @DavidGewirtz, on Fb at Fb.com/DavidGewirtz, on Instagram at Instagram.com/DavidGewirtz, on Bluesky at @DavidGewirtz.com, and on YouTube at YouTube.com/DavidGewirtzTV.





