-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ff2016
commit 7850723
Showing
3 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
tell application "System Events" to keystroke "c" using {command down} | ||
delay 0.1 | ||
tell application "iTerm" | ||
set w to current window | ||
tell w's current session to write text (the clipboard) | ||
activate | ||
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<p align="center"> | ||
<img src="https://upload.wikimedia.org/wikipedia/commons/5/57/ITerm2_v3_icon.png" | ||
width="256" height="256"> | ||
</p> | ||
|
||
# iTerm Scripts | ||
|
||
Scripts for use while working in [iTerm][iterm]. | ||
> Although not needed, the shortcut keys I use to execute these via [Keyboard Maestro][kmapp] or [Alfred][alfredapp] are included in case you're interested | ||
## Contents | ||
|
||
- [Copy Text and Send to iTerm][9badd7b8] :earth_americas: <kbd>⌘</kbd><kbd>⌥</kbd><kbd>⌃</kbd><kbd>T</kbd> | ||
- Great when you are copying commands from websites or manuals to paste into the terminal. | ||
- [Open Finder Selection in iTerm](../Finder/Open-Selection-in-iTerm.applescript) <kbd>⌥</kbd><kbd>⇧</kbd><kbd>T</kbd> | ||
- Open [iTerm][iterm] and change directory to the current location in Finder. Super useful if you are on the command-line a lot. | ||
![demo](../imgs/finder-iterm.gif) | ||
|
||
|
||
[9badd7b8]: ./Copy-Text-and-Send-To-iTerm.applescript | ||
<!-- links --> | ||
[iterm]: https://www.iterm2.com/ | ||
[kmapp]: https://www.keyboardmaestro.com/ | ||
[alfredapp]: https://www.alfredapp.com/ |