tell application iTerm2 -- application-level commands -- These commands return a window. set newWindow to (create window with default profile) set newWindow to (create window with default profile command "ls -l -R /") select first window set newWindow to (create window with profile "Defaul...
When enabled, you can focus the Hotkey: field and press a keystroke. From then on, pressing that keystroke (even when iTerm2 is not the front application) will cause iTerm2 to come to the front. If it is the foreground app, it will be sent to the back. This requires that you enabl...
OSC 1337 ; SetBadgeFormat=Base-64 encoded badge format ST Here's an example that works in bash:# Set badge to show the current session name and git branch, if any is set. printf "\e]1337;SetBadgeFormat=%s\a" \ $(echo -n "\(session.name) \(user.gitBranch)" | base64) ColorTh...