Contents
Why does iTerm2 need to be integrated with the shell?
iTerm2 may be integrated with the unix shell so that it can keep track of your command history, current working directory, host name, and more—even over ssh. This enables several useful features. The easiest way to install shell integration is to select the iTerm2>Install Shell Integration menu item.
What happens when you drop a file in iTerm2?
If you drop a file (e.g., from Finder) into iTerm2 while holding the option key, iTerm2 will offer to upload the file via scp to the remote host into the directory you were in on the line you dropped the file on. A new menu bar item will be added called Uploads that lets you view uploaded files and track their progress.
What are the shortcuts in iTerm2 terminal replacement?
The shortcuts cmd-d and cmd-shift-d divide an existing session vertically or horizontally, respectively. You can navigate among split panes with cmd-opt-arrow or cmd- [ and cmd-]. You can “maximize” the current pane–hiding all others in that tab–with cmd-shift-enter. Pressing the shortcut again restores the hidden panes.
When to use the alert box in iTerm2?
iTerm2 can show an alert box when a mark appears. This is useful when you start a long-running command. Select Edit>Marks and Annotations>Alert on next mark(Cmd-Opt-A) after starting a command, and you can go do something else in another window or tab.
How do I install go2shell in Finder terminal?
Go2Shell opens a terminal window to the current directory in Finder. First – Launch Go2Shell. Then – Select your favorite terminal application. Finally – click Install Go2Shell To Finder. You are all set!
Is the iTerm2 integration script supported in tcsh?
This feature is not supported in tcsh. For zsh and bash users: if you are unable to modify PS1 directly (for example, if you use a zsh theme that wants to control PS1), you must take an extra step. Add export ITERM2_SQUELCH_MARK=1before the shell integration script is sourced.