AppleScript for iTerm2 Alfred integration.
- Copy the script contents to the clipboard.
- Navigate to Alfred Preferences → Features → Terminal.
- Set
Application
toCustom
. - Select the text in the box.
- Paste.
- 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