1

I'm using the terminal shell of the MAC OSX (Unix environment) and I was wondering if it's possible to open a new terminal window in the current directory that I'm located in. Frequently I want to enter a file with a vi and see the contents of the folder simultaneously. CMD+N will open a new terminal with the default path being the home path ~.

Is this possible?

If not, perhaps it's possible to split my terminal window, such that I can enter one file with vi will remain in the bash command line with the other half of the split-ed window?

Thanks a lot! Amit

2 Answers 2

2

Just above the scrollbar there's a button that has a gray window with a bar across the middle. If you click it, the terminal splits into two panes; you can drag the divider to resize the panes, and run vi in the bottom pane while keeping the original terminal contents in the top pane. (You will then see two such buttons above the scrollbar for each pane; the bottom one closes the pane.)

To be clear: this does not give you multiple usable terminals, just multiple views of the terminal's scrollback. Terminal.app doesn't have a way to clone a tab, but development releases of iTerm do.

7
  • I see, that works! Is there a shortcut (keyboard button) to split the terminal? Also, it there a keyboard shortcut to switch between splitt-ed terminal windows?
    – Amit
    Commented Mar 11, 2011 at 20:16
  • Lastly, is it possible to vertically split it rather than horizontally?
    – Amit
    Commented Mar 11, 2011 at 20:17
  • It doesn't look like either is possible.
    – geekosaur
    Commented Mar 11, 2011 at 20:23
  • Man that is very very unfortunate.
    – Amit
    Commented Mar 11, 2011 at 20:33
  • How do I even switch between terminal windows, do you know??
    – Amit
    Commented Mar 11, 2011 at 21:03
0

I've been using cd to for years, it is a little button that plugs into the finder toolbar and opens a terminal in that window.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .