GuidesThe terminal

The terminal ​

Vaultport is a full terminal app, for SSH, Mosh, Telnet and serial sessions as well as local shells. The features on this page work the same over SSH and on your own computer: what they need from the remote machine is read over the session's own connection, and nothing is ever run on the server for them.

Tabs ​

ActionWindows / LinuxmacOS
New terminal tabCtrl+T⌘+T
Close tabCtrl+W⌘+W
Reopen closed tabCtrl+Shift+T⌘+⇧+T
Connect to a host…Ctrl+Shift+N⌘+O
Split rightCtrl+Shift+D⌘+D
Split downCtrl+Alt+Shift+D⌘+⇧+D
Go to the pane left…Alt+← (and the other arrows)⌘+⌥+← (and the other arrows)
Rename tabCtrl+Shift+R⌘+⇧+R
Next / previous tabCtrl+Tab, Ctrl+PgDn/PgUp⌃+Tab, ⌘+⇧+]/[
Go to tab 1–8, last tab¹Ctrl+1…8, 9⌘+1…8, 9

¹ The pinned Vault and SFTP tabs are 1 and 2. On Windows and Linux, Alt+1…9 works too.

  • New terminal tab opens a local shell on desktop — the terminal profile you used last — in the directory of the local tab you are in. On phones and tablets, where there is no local shell, it opens the connection picker.
  • The ▾ next to the title bar's + opens a new tab with any terminal profile (or the connection picker); Mod+Shift+1…9 opens the first nine profiles directly, and the command palette has a New terminal: … entry for each.
  • Split a tab to the right or down (the split button in the title bar, the tab's right-click menu, a pane's header or the shortcuts above): the new pane is another connection to the same host (or a local shell with the same profile, in the same directory). Dragging another tab onto a terminal shows the two side by side. In a split, Mod+W closes only the focused pane, and when one pane is left it becomes a normal tab again. Drag dividers to resize panes, drag a pane's header to move it, and maximize a pane while you work in it — see Split panes & workspaces.
  • Duplicate (tab menu or command palette) opens another connection to the same host (or another local shell in the same directory) right next to the tab.
  • Double-click a tab (or press F2 on it) to rename it; a renamed tab keeps its name even when a program sets the title. Clear the name to hand the title back.
  • Closing a tab or pane in which a command is still running (known with shell integration) asks first, so a stray Ctrl+W does not end a long job.
  • Right-click a tab for duplicate, rename, close, close other tabs, close tabs to the right and reopen closed tab. Up to 20 closed terminal tabs are remembered until you quit.
  • Reopen tabs on start (Settings → Terminal) reopens your terminal tabs and splits after you unlock. Only host references and directories are saved, encrypted in this device's vault, and never synced.

Ctrl+W and Ctrl+T in the shell

On Windows and Linux, Ctrl+W (delete word) and Ctrl+T (swap characters) no longer reach the shell (closing a tab with a running command asks first), as in most terminal apps with tabs. If you need them there, remove or change the shortcuts in Settings → Shortcuts — every shortcut can be rebound, and Ctrl+Shift+W closes tabs as well.

Terminal profiles ​

On desktop, a local terminal tab starts one of your terminal profiles — a program with its arguments, an optional start directory and environment variables. The first time you unlock on a computer, Vaultport looks for the installed shells and adds a profile for each:

  • Windows: Windows PowerShell, PowerShell 7 (pwsh on PATH or in its usual install folders), Command Prompt, Git Bash (Git for Windows' bin\bash.exe, as a login shell), every installed WSL distribution (started with wsl.exe -d <name> in its Linux home directory) and, when Visual Studio or its Build Tools are installed, the Developer Command Prompt and Developer PowerShell.
  • macOS and Linux: your login shell ($SHELL) and the other shells listed in /etc/shells (zsh, bash, fish, …), each as a login shell.

Manage them in Settings → Terminal → Terminal profiles: add your own (any program, e.g. nu or ssh.exe jumphost), edit, reorder or hide profiles, choose the default profile, and run Detect shells again after installing a new one (it only adds profiles; your changes to existing ones stay). New tab opens chooses what Mod+T starts: the last used profile (the default, remembered across restarts) or always the default profile. Profiles name programs on this computer, so they are stored in this device's vault only and never synced.

Shell integration works per profile, recognised from the program: PowerShell (5.1 and 7), cmd, bash (Git Bash included), zsh and fish load it at start. A profile whose arguments already run a script or command (e.g. bash -c … or pwsh -File …) starts without it; a PowerShell -Command (like Developer PowerShell's) is kept and the integration runs after it. WSL shells run inside Linux, so Vaultport types the loader at the first prompt instead, as it does over SSH, and completes paths in the distribution (/mnt/c/… and \\wsl.localhost\<name>\…). The local AI is told which shell the tab's profile runs.

Autocomplete ​

Suggestions appear at the cursor while you type at the prompt. They come from Vaultport's deterministic completion engine (no AI):

  • Commands installed on the machine. Vaultport lists the directories on PATH — plus the usual places such as /usr/local/bin, Homebrew, ~/.local/bin, ~/.cargo/bin — and knows the shell builtins. On a server it does this over an SFTP channel of your SSH connection, in the background, once every few minutes.
  • Subcommands, options and values of about 300 tools: git, docker and docker compose, kubectl, systemctl, npm/pnpm/yarn/bun, cargo, go, gh, aws, terraform, brew, macOS tools such as defaults, launchctl and diskutil, and many more. Typos are forgiven: git chkout finds checkout, --fwl finds --force-with-lease.
  • Files and folders in the shell's working directory, on your computer or on the server.
  • Values from the machine: git branches, tags and remotes of the repository you are in; npm run scripts, make and just targets; users and groups; SSH hosts from ~/.ssh/config, known_hosts, /etc/hosts and your saved hosts; systemd units, init scripts and launchd jobs; network interfaces; signals; environment variables after $.
  • Your command history for the host and your snippets.
KeyAction
↑ / ↓Choose a suggestion
TabInsert it
→ or EndAccept the grey inline suggestion
Ctrl+→ (⌥→ on macOS)Accept its next word
Ctrl+SpaceShow suggestions now
EscHide the list

Inline suggestions show the rest of the best matching command from your history in grey after the cursor, like fish and Warp. In Settings → Terminal → Suggestions you can choose to see the list only when you press Tab (then Tab goes to the shell when there is nothing to suggest), and turn inline suggestions off.

Syntax highlighting ​

The command line is coloured while you type: commands, options, strings, variables, operators, keywords and comments. A command that is not installed on the machine — and that you have not run there before — turns red once you finish typing it, so typos such as gti status stand out before you press Enter. The colours come from your terminal theme and stay on the lines that ran.

Output is highlighted too: errors, warnings, IP and MAC addresses, dates, UUIDs, commit hashes and HTTP status codes. Add your own patterns with colours under Settings → Terminal → Custom output highlighting, for example prod-\w+ in red.

Command blocks ​

With shell integration, every command and its output form a block:

  • a thin line separates commands; a badge at the right shows the exit status and how long it took — green for success, red for failure (failures also show in the scrollbar);
  • click the badge to copy the command, its output or both, run it again, let the local AI suggest a fix, or copy a ready-made prompt for your AI agent;
  • Ctrl+Shift+↑/↓ (⌘+↑/↓ on macOS) jumps between commands, and Mod+Shift+O copies the output of the last one;
  • while you scroll through long output, the command it belongs to stays visible at the top — click it to jump there;
  • when a command that ran 10 seconds or longer finishes while you are in another tab or app, Vaultport tells you, with a link back to the tab. Change the threshold (or turn it off with 0) in Settings → Terminal → Command blocks.

Mistyped commands ​

When a command fails because it does not exist, Vaultport offers the closest installed command — gti status → git status — with Run and Edit buttons. The rest of the line is kept.

Context bar ​

A slim bar under the terminal shows the working directory (click it to copy the path), the git branch (or commit, when detached) and the exit status and duration of the last command. Turn it off in Settings → Terminal → Command blocks.

Ctrl+R opens a search over every command you ran on this host, newest and most frequent first, matching words in any order and fuzzy abbreviations. Enter puts the command on the prompt to edit, Mod+Enter runs it. While a command or a full-screen program runs, Ctrl+R goes to it as usual.

Command editor ​

Mod+Shift+E opens a text editor for long or multi-line commands, starting with what you typed. Mod+Enter runs it; Mod+Shift+Enter puts it on the prompt. Multi-line text is sent as one bracketed paste, so the shell does not run the lines one by one.

AI in the terminal ​

With Local AI turned on:

  • Ctrl+` opens the AI command bar: describe what you want, and the on-device model suggests one command with an explanation and a risk rating;
  • or type # what you want at the prompt and press Enter (with shell integration, so that # lines elsewhere — in a heredoc or a REPL — are left alone);
  • after a command fails, Fix with AI in its block menu suggests a corrected command from the command and its output.

The model gets the terminal's operating system, working directory and recent commands as context. Suggestions are put on the prompt (Tab) or run (Mod+Enter) only when you say so. AI agents connected over MCP can also read your open terminals and type into them with your approval.

Shell integration ​

Command blocks, exit codes, the working directory for new tabs and the best suggestions need shell integration: a few lines of shell script that mark where prompts, commands and output start (OSC 133 / 633) and report the working directory (OSC 7). It is on by default (Settings → Terminal → Command blocks).

  • Local shells (bash, zsh, fish, PowerShell and cmd, whichever terminal profile starts them) load it automatically, without changing your dotfiles; WSL shells get it typed in at the first prompt. cmd has no script: Vaultport adds the marks to its PROMPT, which gives the working directory and prompt marks, but cmd reports neither command lines nor exit codes, so it has no command blocks.
  • SSH sessions: open the command palette and choose Enable command blocks in this session, or set Shell integration over SSH to Automatic. Vaultport then types a one-line loader that turns echo off, asks the shell which one it is (the same line works in bash, zsh and fish), reads the script for that shell and evaluates it in the running shell. At a PowerShell prompt (PS …>, Windows PowerShell or pwsh on any system) it types a PowerShell loader instead, and at a cmd prompt (C:\…>) it adds the marks to the prompt with prompt. PowerShell is recognised by that default prompt; with a prompt of your own, load the script from your profile (below). Nothing on the server is changed and the next login starts clean, although PowerShell keeps the loader line in its history. To have it permanently, source (in PowerShell, dot-source from $PROFILE) the script for your shell from your remote dotfile; it only activates when VAULTPORT_SHELL_INTEGRATION is set, which Vaultport sends with every SSH session.

Default terminal ​

On desktop, other programs can open Vaultport like any terminal: vaultport -e htop, vaultport --working-directory ~/src, vaultport ssh://me@server, a second launch that opens a tab in the running app, "Open in Vaultport" for folders on Windows, xdg-terminal-exec on Linux and shell scripts on macOS. Turn these on in Settings → Terminal → Default terminal; Default terminal describes each OS, including why Windows' own "Default terminal application" list cannot show Vaultport.

More ​

  • Search the output with Ctrl+Shift+F (⌘+F on macOS): results update as you type, show the match count, and can match case, whole words or a regular expression.
  • Tab activity: a tab shows a spinner while a command runs in it, and a check, a cross or a bell when a command finished, failed or the bell rang while you were elsewhere. Bell in Settings → Terminal chooses between a flash, a short tone or nothing.
  • Zoom: Mod+= / Mod+- / Mod+0; clear with Mod+Shift+K.
  • macOS line editing: ⌘+←/→ jump to the start or end of the line, ⌥+←/→ move by word, ⌘+⌫ deletes to the start of the line and ⌥+⌫ deletes a word.
  • Themes, fonts, truecolor, OSC 52 clipboard, remote titles and more are described under Hosts & groups; the full list of shortcuts is under Keyboard shortcuts.