This repository provides an action for LaunchBar that allows users to quickly open a terminal session using any available iTerm2 profile. The action lists all configured profiles in iTerm2, and selecting one from the dropdown menu in LaunchBar opens a new tab with the chosen profile in an existing iTerm2 window. If no iTerm2 window is open, a new window is launched.
This repository includes the following components:
- Pre-packaged Action:
Action Open iTerm2 Profile.lbaction.zip
, ready for installation. - Source Code:
default.py
– Retrieves available iTerm2 profiles and provides them to LaunchBar.iterm2_launcher.scpt
– AppleScript for opening a new tab or window with the selected profile.open_profile.py
– Handles profile selection and executes the appropriate script to launch iTerm2.
- Download the pre-packaged action from Action Open iTerm2 Profile.lbaction.zip.
- Extract the
.lbaction
file from the zip archive. - Move
Open iTerm2 Profile.lbaction
to the LaunchBar Actions folder:~/Library/Application Support/LaunchBar/Actions
- Restart LaunchBar to load the new action.
Simply double-click the Open iTerm2 Profile.lbaction
file. This will install the action automatically in LaunchBar.
- Open LaunchBar and type
iTerm2
or part of the action name. - Select "Open iTerm2 Profile".
- A dropdown menu will appear, listing all available iTerm2 profiles.
- Choose a profile to open a new tab in the existing iTerm2 window, or a new window if none is open.
If you find this action useful, consider supporting its development with a donation.
- Author: Andrea Alberti
- GitHub Profile: alberti42
- Donations:
Feel free to contribute to the development of this action or report any issues in the GitHub repository.