Custom Alfred iTerm Scripts

May 7, 2025 · View on GitHub

AppleScript for iTerm2 Alfred integration.

How To

  1. Copy the script contents to the clipboard.
  2. Navigate to Alfred Preferences → Features → Terminal.
  3. Set Application to Custom.
  4. Select the text in the box.
  5. Paste.
  6. Optionally change the script’s behaviour by editing the property lines at the top.

Tip

To quickly copy the script to your clipboard, run the following command in a terminal:

/usr/bin/curl --silent 'https://raw.githubusercontent.com/vitorgalvao/custom-alfred-iterm-scripts/master/custom_iterm_script.applescript' | pbcopy