Terminal

Terminal in a pane

Turn either pane into a shell that always stays in the same folder as the pane's file list.

Each pane can show its files or its own terminal. A pane's terminal is a real shell that lives with the pane: it starts in the folder the pane shows, it moves when the pane moves, and the pane moves when you cd in the shell. You can have files on one side and a shell on the other, or a shell on both sides.

The left pane switched to its terminal in the project folder, after the tests passed.
The left pane switched to its terminal in the project folder, after the tests passed.

Show a terminal in a pane

To switch a pane to its terminal, do one of these:

  • Click the Show terminal button in the pane's toolbar (the terminal icon, next to the folder icon).
  • Press ⇧⌘T to switch the active pane. The same key switches it back to its files.
  • Choose View ▸ Toggle Pane Terminal.

The first time, a new shell starts in the folder the pane is showing. While it starts, the pane's title area says starting…. After that the title shows the shell and the folder, for example zsh — orbit-agent, with a dot that tells you the shell is running.

The other pane is not affected. Each pane has its own shell, and neither is shared with the terminal panel at the bottom of the window.

The pane's terminal in the orbit-agent project: git status, the last five commits, a lint run and a test run, both passing.

Open a folder in the terminal

To open a terminal in a particular folder, select the folder and choose File ▸ Open in Terminal, or right-click it and choose Open in Terminal. The pane goes to that folder and shows its terminal.

If you choose Open in Terminal on a file, or on empty space in the list, the terminal opens in the folder the pane is showing.

The terminal follows the folder

A pane's shell and its file list are always in the same folder, in both directions:

  • When you move the pane, the shell follows. Open a folder, click the path bar, go Back or Forward, or choose a favorite: the shell changes to that folder too.
  • When you cd in the shell, the pane follows. The file list shows the new folder as an ordinary navigation, so Back returns you to where you were.
➜  orbit-agent git:(main) cd docs
➜  docs git:(main)

After this cd, the pane's file list shows ~/Projects/orbit-agent/docs.

Vektor Commander never types into a program that is running. If the shell is busy (a test run, a dev server, an editor), the shell moves to the pane's new folder as soon as it is back at its prompt.

When the pane moves the shell, anything you had half-typed at the prompt is cleared first, so it is not glued onto the folder change. In zsh you can bring it back by yanking it from the kill ring.

Switch back to the files

To see the pane's files again, click Show files in the pane's toolbar (the folder icon), or press ⇧⌘T again.

The shell keeps running while the pane shows its files: a server you started keeps serving, and its output is still there when you switch back. The file list comes back with the same folder, selection and history.

If you click a place in the sidebar while the pane shows its terminal, the pane switches to its files and shows that place.

Make the pane bigger

To give one pane the whole width of both panes, click Expand pane in its toolbar, or press ⇧⌘↩. This is useful for long terminal output. The other pane is only hidden: its folder, and any shell running in it, are still there. To bring back the two panes, click Restore split view or press the same key again.

For more about the two panes, see Navigating.

Close or restart the shell

  • To end a pane's shell, click the × next to its name in the pane's title area. The shell ends and the pane shows its files again.
  • If the shell ends by itself (you type exit, or it stops), the pane keeps showing the terminal with the message This session has ended. and a Start New Session button. The text that was on screen stays, so you can still copy it. The pane never restarts a shell on its own.
  • In terminal mode the pane's Refresh button becomes Start new session. It is available only after the shell has ended.

If a shell cannot start, for example because the folder no longer exists, the pane explains why and offers Start New Session and Show Files.

Pane terminals and window tabs

Each window tab has its own two panes, so it also has its own pane terminals. Switching to another tab does not stop them; when you come back they are as you left them. Closing a tab ends the shells in its panes.

If you swap the panes, each shell moves with its pane.

Which shell runs

Every terminal in Vektor Commander runs your login shell, the same one Terminal opens, with your usual startup files. On a standard Mac that is zsh. If your login shell cannot be found, Vektor Commander uses zsh, then bash, then sh. There is no separate shell setting in the app; to use another shell, change your login shell in macOS.

The terminal announces itself to programs as a 256-color terminal with full-color support, so colored prompts, ls colors and themes in command-line programs show as intended. Terminal colors follow your theme.

Terminals on servers and in containers

A pane that shows an SSH or SFTP server, or a Docker container, can also show a terminal. Its shell runs on that server or in that container, starts in the pane's folder, and follows the pane in the same way. A one-line note above such a terminal tells you whether a cd typed in the shell can move the pane. See SSH and Docker for the details.

An S3 bucket has no shell. If you try to open a terminal in an S3 pane, Vektor Commander says so and the pane keeps its files.

After you quit

Pane terminals are not kept when you quit: quitting ends every shell, and Vektor Commander always opens with both panes showing their files. Your folders are restored as usual; switch a pane to its terminal to start a new shell there.

© 2026 Vektor Commander