|
|
Alternative Applescript solution for Terminal
Terminal is a bit weird in that (as far as I know) there's no explicit way to create a new window. However, just running a script without specifying a window will create a new one. I wrote this little script, which I've attached to a trigger with Quicksilver. It creates a new window in the Terminal if it needs to, and switches to the directory of the frontmost window in the Finder.
Combined with Default Folder's "Reveal in Finder" command, you can jump from an open dialog box to the same directory in the terminal in just two keystrokes. UI and CLI cooperating in a symphony of...uh...goodness. Oh yeah, and if you bind a key in the shell to type something like "open ." you can jump from the terminal to the current working directory in the Finder, i.e. the opposite direction. This is what I use in my .zshenv:
Putting \012 (octal for enter) on the end of the binding means you can make the leap in one keystroke, in this case opt-L (technically meta-L I guess). Note that this works for zsh, I don't know how to do it in bash.
Alternative Applescript solution for Terminal
In bash, it's
Or you can just put
in your ~/.inputrc file.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|