What does an iTerm2 profile change?
A profile can choose the command to start and the starting folder. Use a known local profile for practice. Check the command setting if you cannot tell which shell a tab opens.
The current download page lists macOS requirements for each version. Choose the appropriate release for your Mac before copying someone else’s settings.
How do you check which folder a tab is using?
In a known local Bash or zsh session, type pwd to print the working directory, which is the folder the shell currently uses. Compare the result to the folder you expected. If the session or shell is unfamiliar, rehearse on paper.
Each tab or pane can be in a different folder. A familiar tab title by itself does not establish where a command will run.
What can you keep when moving to another Mac?
iTerm2 can load preferences from a custom folder. Keep only the profile settings you need and review paths and custom commands before sharing. Reinstall or select the shell and copy project files separately.
How would you spot the wrong pane?
Draw a split view for a fictional workshop. Use no shell change, remote session or live project.
- Label the two foldersWrite sample-site on one side and sample-notes on the other.
- Predict the resultWrite which folder pwd should show for the active pane. Check the pane before following the next instruction.