iTerm2 Shell Integration
Contents
iTerm2 shell integration
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.
Install
NOTE: first ssh your server
- Select the
iTerm2>Install Shell Integrationmenu item - Select
Continueand select the second install wayInternet-free Install - Select
Continueuntil install finished
Features
iTerm2 Documentation: Documentation
For me, 2 features are very useful:
imgcat: display one or more images inline- Download and Upload: i. You can right-click on a filename (e.g., in the output of ls) and select Download with scp from hostname**, and iTerm2 will download the file for you. ii. 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.
Gaux Wang