9/14/2005
iTerm Tricks
Marc Liyanage posted a script to open a new Terminal window in a specified directory or run a specified command.
What it does is open up a new Terminal window and execute the arguments as command in that new window. When no arguments are given, it opens the new window in the current directory, which means it acts like a “clone” operation for the frontmost window. This is useful if you’re in some deeply nested directory and you need a second window right there. This way you don’t have to copy/paste or type the directory path.
I modified the script slightly to interface with iTerm, opening a new default session instead of a new window.
Download the file, place somewhere in your path, and make sure its executable.
Examples:
Open a second iTerm session in the current directory.
Open a second iTerm session in my home directory.
Open a second iTerm session and start editing my .bashrc file.
Open a second iTerm session in the current directory and start editing filename.
Open a second iTerm session in the current directory (presumably /var/log/httpd) and start following the error_log file using tail.
Popularity: 64%



September 20th, 2005 at 9:47 am
iTerm Here Applescript Update
Last week I posted a combination shell script, Applescript to open a new iTerm session in the local directory or a specified directory.
Version 1.2 is available for download now.
The Applescript was fixed so the new session alwasy opens in the cur…