|
1 | | -# custom-iterm-applescripts-for-alfred |
2 | | -This repository contains custom Applescripts that can be put into the Alfred --> Features --> Terminal --> Custom section to enable the correct operation of iTerm with Alfred. |
| 1 | +# Custom Alfred iTerm Scripts |
3 | 2 |
|
4 | | -Unfortunately as many people will know, when iTerm's Applescript functionality changes it can often break integration with Alfred. |
| 3 | +AppleScript for [iTerm2](https://iterm2.com/) [Alfred](https://www.alfredapp.com/) integration. |
5 | 4 |
|
6 | | -### Note: Check your iTerm version (`iTerm2` → `About iTerm2`) and follow the instructions corresponding to your version below. |
| 5 | +## Use |
7 | 6 |
|
8 | | -## How to install the scripts |
9 | | -### Video instructions |
10 | | -Check out the official YouTube video, it will give you a quick two and a half minute rundown. |
11 | | -[](https://www.youtube.com/watch?v=_XlJFCbmVUs) |
| 7 | +1. [Copy the script to your clipboard](#copy-the-script). |
| 8 | +2. Open Alfred Preferences (call Alfred and press <kbd>⌘</kbd><kbd>,</kbd>). |
| 9 | +3. Navigate to Features → Terminal → Custom. |
| 10 | +4. Set `Application` to `Custom`. |
| 11 | +4. Select the text in the box. |
| 12 | +4. Paste. |
12 | 13 |
|
13 | | -### Text instructions |
| 14 | +### Copy the script |
14 | 15 |
|
15 | | -1. Run one of these terminal commands to copy the Applescript for your iTerm2 version to your clipboard. |
16 | | - |
17 | | - + For `3.1.1`: |
| 16 | +To copy the script to your clipboard, run the following command. |
18 | 17 |
|
19 | | - ```bash |
20 | | - curl --silent 'https://raw.githubusercontent.com/stuartcryan/custom-iterm-applescripts-for-alfred/master/custom_iterm_script_iterm_3.1.1.applescript' | pbcopy |
21 | | - ``` |
| 18 | +``` |
| 19 | +curl --silent 'https://raw.githubusercontent.com/vitorgalvao/custom-alfred-iterm-scripts/master/custom_iterm_script.applescript' | pbcopy |
| 20 | +``` |
22 | 21 |
|
23 | | - + For `2.9`: |
| 22 | +#### Credits |
24 | 23 |
|
25 | | - ```bash |
26 | | - curl --silent 'https://raw.githubusercontent.com/stuartcryan/custom-iterm-applescripts-for-alfred/master/custom_iterm_script_iterm_2.9.applescript' | pbcopy |
27 | | - ``` |
| 24 | +Script written and maintained by [Vítor Galvão](https://github.com/vitorgalvao/). Previous versions by [Stuart Ryan](http://stuartryan.com). |
28 | 25 |
|
29 | | - + For `2.1.1`: |
| 26 | +#### License |
30 | 27 |
|
31 | | - ```bash |
32 | | - curl --silent 'https://raw.githubusercontent.com/stuartcryan/custom-iterm-applescripts-for-alfred/master/custom_iterm_script_iterm_2.1.1.applescript' | pbcopy |
33 | | - ``` |
34 | | - |
35 | | -2. Paste it under `Alfred Preferences` → `Features` → `Terminal / Shell` → `Application` → `Custom`. |
36 | | - |
37 | | - |
38 | | - |
39 | | -## Specific Version Notes |
40 | | - |
41 | | -If you have iTerm in a location other than /Applications/iTerm.app make sure you update the Applescript templates to match that (see inline comments). |
42 | | - |
43 | | -## Donations |
44 | | -If you would like to say thanks and donate which will give me ever more life giving caffeine Diet Coke, some Cake, or to put towards a shiny new gadget you can [donate to me via Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JM6E65M2GLXHE). |
45 | | - |
46 | | -<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JM6E65M2GLXHE" target="_blank"><img src="https://www.paypalobjects.com/en_AU/i/btn/btn_donateCC_LG.gif" border="0" alt="PayPal — The safer, easier way to pay online."></a> |
47 | | - |
48 | | - |
49 | | -## Contributing |
50 | | - |
51 | | -1. Fork it! |
52 | | -2. Create your feature branch: `git checkout -b my-new-feature` |
53 | | -3. Commit your changes: `git commit -am 'Add some feature'` |
54 | | -4. Push to the branch: `git push origin my-new-feature` |
55 | | -5. Submit a pull request :D |
56 | | - |
57 | | -## Credits |
58 | | - |
59 | | -Scripts created and maintained by [Stuart Ryan](http://stuartryan.com). If you would like to get into contact you can do so via: |
60 | | -* [@StuartCRyan on Twitter](http://twitter.com/stuartcryan) |
61 | | -* [Stuart Ryan on LinkedIn](https://au.linkedin.com/in/stuartcryan) |
62 | | -* [Technical Notebook Blog](http://technicalnotebook.com) |
63 | | - |
64 | | -## License |
65 | | - |
66 | | -Released under the GNU GENERAL PUBLIC LICENSE Version 2, June 1991 |
| 28 | +The Unlicense (Public Domain, essentially) |
0 commit comments