बस "शैल एकीकरण" स्थापित करें और यह आपके लिए स्वचालित रूप से स्थापित हो जाएगा।
ITerm2 मेनू पर, बस "शेल एकीकरण स्थापित करें" पर क्लिक करें

फिर आपको यह देखना चाहिए कि इमगैट स्थापित है, जो आउटपुट को दर्शाता है:
$curl -L https://iterm2.com/misc/install_shell_integration_and_utilities.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2694 100 2694 0 0 2890 0 --:--:-- --:--:-- --:--:-- 2890
Downloading script from https://iterm2.com/misc/bash_startup.in and saving it to /Users/allan/.iterm2_shell_integration.bash...
Checking if /Users/allan/.bash_profile contains iterm2_shell_integration...
Downloading imgcat...
Downloading it2dl...
Adding aliases...
Done.
--------------------------------------------------------------------------------
The next time you log in, shell integration will be enabled.
You will also have these commands:
imgcat filename
Displays the image inline.
it2dl filename
Downloads the specified file, saving it in your Downloads folder.