AppleScript for iTerm2 Alfred integration.
- Copy the script to your clipboard (see below).
- Open Alfred Preferences (call Alfred and press ⌘,).
- Navigate to Features → Terminal → Custom.
- Set
Application
toCustom
. - Select the text in the box.
- Paste.
- Optionally, change the script’s behaviour by changing the
property
lines at the top.
To copy the script to your clipboard, run the following command.
curl --silent 'https://raw.githubusercontent.com/vitorgalvao/custom-alfred-iterm-scripts/master/custom_iterm_script.applescript' | pbcopy