AppleScript for iTerm2 Alfred integration.
- Copy the script to your clipboard.
- 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
The Unlicense (Public Domain, essentially)