![]() You could bypass it by adding a space before the command itself (like echo -e. ![]() You'll also have these commands left in your shell's history. ![]() You should make sure there is no interactive stuff running in any of your shells. If you have a ping command running in one of the tabs - it won't work, too. Please note that it just writes the text (literally) into the each session, so if you have some text editor opened in one of your tabs - it won't work in it, and will paste the echo command in your code/configuration file instead. Write text "echo -e '\\033]50 SetProfile=LargeText\\a'" The data in iTerm2 is particularly sensitive because a compromise would affect not only the local machine but also on remote hosts that you connect to with ssh. The Python API aims to provide a safe and reliable way for programs to control iTerm2. Now we can use AppleScript to automate the execution for all opened sessions: tell application "iTerm" Note: This document applies to iTerm2 version 3.4.0 and later. In every opened session to change the terminal's profile to "LargeText". So, you can execute that: echo -e "\033]50 SetProfile=LargeFont\a" You can't change either the font size or the profile of the terminal sessions using AppleScript (at least I haven't found a way), but you can execute commands in every session using AppleScript, and there's a custom escape sequence in iTerm2 that supports changing profiles for the session it was echo'ed in. Set the font size you want it to display in the newly created profile's Text pane. You can clone it from the default one by pressing ⌘=. You can create a new profile in the iTerm2's preferences (the Profile pane). There's a really shitty and buggy way to automate this, but I'll post it anyway. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |