Make Alfred open all terminal commands in iTerm2 instead of the default macOS Terminal app.
Customize whether Alfred commands open in a new iTerm2 tab or a new window.
This repository contains a small AppleScript that connects two popular Mac applications: Alfred and iTerm2. Alfred is a productivity launcher for Mac that lets you search files, run commands, and trigger workflows from a keyboard shortcut. iTerm2 is a terminal emulator that many developers prefer over the Mac's built-in Terminal app. Alfred has a built-in feature that lets you open terminal commands from its interface, but by default it opens the standard Terminal app. This script replaces that default behavior so Alfred opens commands in iTerm2 instead. Setup involves copying the script text and pasting it into a specific field in Alfred's preferences, which takes a minute or two. The README is short because the process is straightforward: there are six steps, and the script handles the rest. A few customizable settings at the top of the script let you adjust the exact behavior if the defaults do not suit your workflow.
← vitorgalvao on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.