RedShell reads config.toml from:
| OS | Path |
|---|---|
| Linux | ~/.config/redshell/config.toml |
| macOS | ~/Library/Application Support/redshell/config.toml |
| Windows | %APPDATA%\redshell\config.toml |
If REDSHELL_HOME is set, RedShell uses $REDSHELL_HOME/config/ and $REDSHELL_HOME/data/
instead.
Every key is optional, and RedShell writes a commented template on first start. When you save the file, changes apply immediately. If the file has an error, RedShell starts with the defaults (or, when it was already running, keeps the settings it had) and shows the error with its line and column in Settings. RedShell never writes a file that has an error: until you fix it, changes made in the app apply but aren't saved.
Most options can also be changed in the Settings panel (Ctrl+,), which writes the same file.
It changes only the keys you changed and leaves your comments, the order of the keys and keys it
doesn't know alone; a key you never set is only added when its new value differs from the
default. Fonts are picked from the installed families (monospaced ones first), the shell from the shells
found on this computer, the background image from a file dialog, and each page has a Reset to defaults button (click twice) that resets only the
options on that page. The Keybindings page lists every command with its current key.
| Key | Default | Notes |
|---|---|---|
theme |
"redshell-dark" |
Any theme id. See Themes below. |
theme_light / theme_dark |
unset | When set, the theme follows the OS light/dark mode. |
font_family |
platform mono | Terminal font. |
font_fallbacks |
JetBrains Mono, Cascadia Code, … | Fonts tried for missing glyphs. |
font_size |
14.0 |
Ctrl+= / Ctrl+- zoom the current window without changing it; Ctrl+0 returns to it. |
line_height |
1.35 |
Multiplier of the font size. |
letter_spacing |
0 |
Extra space between characters, in px (-4 to 32). |
font_weight |
400 |
|
bold_is_bright |
false |
Bold text uses the bright ANSI colours. |
ui_font_family, ui_font_size |
platform UI font, 13 |
Fonts for the app chrome. |
radius |
theme's --radius |
Corner radius override, in px. |
padding |
12 |
Padding inside each pane, in px. |
cursor_style |
"block" |
block, bar, underline or hollow. |
cursor_blink |
true |
|
background_opacity |
1.0 |
How opaque the terminal background is in a transparent or blurred window. Has no effect in an opaque one. |
window_background |
"opaque" |
opaque, transparent or blurred (acrylic on Windows, vibrancy on macOS, the KWin blur on Wayland; on X11 it is the same as transparent). Applies without a restart. |
background_image |
unset | Path to an image shown behind the terminal text, across every pane of the tab. ~/ is expanded. |
background_image_opacity |
0.12 |
How strongly the image shows over the terminal background colour. |
background_image_fit |
"cover" |
cover, contain, fill or none. |
tab_bar |
"top" |
top (in the title bar), bottom or hidden. The title bar with the sidebar toggle and window controls always stays at the top. |
show_sidebar |
true |
|
sidebar_width |
264 |
In px, 160 to 640. Drag the sidebar's right edge to change it; double-click the edge to reset it. |
sidebar_sections |
["sessions", "hosts"] |
Sidebar sections, shown in this order: sessions (open tabs), shells, agents, hosts (SSH), multiplexer (tmux/screen sessions on this computer and on the SSH hosts you have tabs on or that set attach_session) and recent (closed recorded sessions). Unknown names are ignored. |
show_status_bar |
true |
|
inactive_pane_dim |
0.35 |
How much unfocused split panes are dimmed. |
The terminal area is layered like Windows Terminal: the theme's terminal background colour,
then the background image at background_image_opacity, then the text. Cells with the default
background are left unpainted, so the image shows through everywhere except under coloured
cells and the selection. In a transparent or blurred window the background colour is
painted at background_opacity, and the tab bar, sidebar and status bar slightly more opaque
so their text stays readable; an opaque window paints everything solid.
| Key | Default | Notes |
|---|---|---|
shell |
$SHELL / pwsh |
Program for new tabs. |
shell_args |
["-l"] for *sh shells |
|
working_directory |
home | |
env |
{} |
Extra environment variables. |
scrollback_lines |
20000 |
In-memory scrollback per pane. History on disk is separate. |
copy_on_select |
false |
|
visual_bell |
true |
|
term |
"xterm-256color" |
|
shell_integration |
true |
Loads RedShell's integration into bash, zsh, fish and PowerShell (see below). |
close_on_exit |
"graceful" |
What happens to a pane when its program exits. graceful closes it on exit code 0, on 130 (what a shell reports after Ctrl+C) and on Windows' Ctrl+C status, and keeps it open to show the error otherwise. always and never do what they say. A pane that stays open offers Restart and Close. Typing exit in the only tab closes the window. |
paste_image_upload |
true |
Paste Image (Ctrl+V, Windows Alt+V) uploads a clipboard image to the SSH host a pane runs on and types its path (see the README). |
With shell_integration = true, new local tabs running bash, zsh, fish, pwsh or powershell
load the matching script from shell-integration/ after the shell's
usual startup files. The scripts are built into RedShell and written to
<data dir>/shell-integration. It reports the working directory and the prompt and command
boundaries, as VS Code's terminal does:
- bash starts with
--init-filepointing at a wrapper that runs~/.bashrc, or for a login shell/etc/profileand the first of~/.bash_profile,~/.bash_loginand~/.profile. - zsh starts with
ZDOTDIRpointing at wrappers that run your own.zshenv,.zprofileand.zshrcfrom yourZDOTDIR(or home).ZDOTDIRis back to yours once.zshrchas run. - fish gets
--init-command, which runs afterconfig.fish. - PowerShell gets
-NoExit -Commandto dot-source the script after your profile. When the execution policy forbids scripts (Windows PowerShell's defaultRestricted), the shell starts without integration, just as it skips your profile.
RedShell only injects when shell_args is empty or holds nothing but -l/--login/-i
(-NoLogo/-Login for PowerShell). With any other argument, such as -c, --norc or
-NoProfile, the command line is used exactly as written. Other shells (cmd.exe, nu, WSL)
are never changed. On Windows, bash means Git Bash, MSYS2 or Cygwin; the bash.exe files that
launch WSL are left alone. fish 4 marks prompts by itself, so its script only adds what fish
leaves out. Sourcing a script yourself still works; it loads only once.
Each policy is one of:
always;multiple_tabs, when more than one tab would close or a program is running (for a single tab this is the same asrunning);running, only when a program other than the shell is running: in the foreground on Linux and macOS, as a child of the shell on Windows. Agent and SSH tabs count as running while they are open; closing a tmux or screen tab only detaches from the session, so it never does;never.
A tab or pane whose programs have all exited closes without asking, whatever the policy.
Closing the last tab closes the window, so confirm_close_window decides whether that asks.
| Key | Default |
|---|---|
confirm_close_tab |
"running". Also applies to closing a pane. |
confirm_close_window |
"multiple_tabs" |
confirm_quit |
"multiple_tabs". Counts the tabs of every window. |
typed_confirmation |
unset. Set to a word, such as "close", to make people type it before quitting or closing a window. |
confirm_multiline_paste |
true. Applies only when the shell has no bracketed paste. |
In every confirmation dialog, Enter and Esc cancel. You confirm by clicking the button or pressing Ctrl+Enter (⌘+Enter on macOS).
| Key | Default | Notes |
|---|---|---|
enabled |
true |
Records every session to data/history.sqlite3. |
retain_days |
30 |
Recordings that ended more than this many days ago are deleted when RedShell starts. Pinned and open sessions are never deleted; 0 keeps everything forever. |
max_session_mib |
64 |
Raw bytes kept per session. When a session goes over, its oldest output is trimmed. |
restore_tabs |
true |
Reopens the tabs from the last run. Tabs attached to a tmux or screen session attach to it again; a session you picked is not created again if it is gone (the tab shows the error instead). A tmux started by hand inside a shell tab is not tracked: use multiplexer.auto_attach_local or attach from the sidebar. |
restore_scrollback |
true |
Replays the recorded output into restored tabs. |
| Key | Default | Notes |
|---|---|---|
preferred |
"tmux" |
tmux or screen. |
windows_backend |
"auto" |
auto uses a native tmux.exe (MSYS2/Cygwin) and falls back to WSL. native or wsl force one. |
wsl_distribution |
default distro | |
auto_attach_local |
false |
Runs every new local tab inside a multiplexer session, so tabs stay alive through restarts. After a reboot (sessions gone) the tabs start fresh sessions, in the directory each tab was opened in. |
The mux.attach_native command (Open tmux Session as Tabs…) lists the tmux sessions on this
computer and on every SSH host, plus a New tmux session entry per target. It attaches with
tmux -C new-session -A -s NAME, run locally, through WSL or as ssh HOST tmux -C …, and shows
each tmux window as a tab and each pane as a native pane. After a restart the session is
re-attached with tmux -C attach-session -t =NAME, which never creates it. Bind it like any other command:
[keybindings]
"ctrl-shift-alt-m" = "mux.attach_native"Closing a native tab asks Detach (default, also used when safety.confirm_close_tab = "never")
or Kill window. Sessions attached natively at exit are attached again on the next start, with
every window as a tab and their current content. A session that no longer exists is reported and
not created again. Requirements: tmux 3.2 or newer on the target, and for SSH hosts authentication that
works without a prompt (keys, agent, ControlMaster), because the control client has no terminal.
[ssh]
program = "ssh" # any OpenSSH-compatible client
import_ssh_config = true # list Host entries from ~/.ssh/config
keep_alive_secs = 30
[[ssh.hosts]]
name = "prod"
host = "prod.example.com"
user = "deploy"
port = 22
identity_file = "~/.ssh/id_ed25519"
jump_host = "bastion"
extra_args = ["-A"]
multiplexer = "tmux" # used by the tmux/screen manager for this host
attach_session = "main" # connect straight into `tmux new -A -s main`
tags = ["work"][agents]
hide_missing = false
args = { claude = ["--model", "opus"], codex = ["--full-auto"] }
[[agents.custom]]
id = "my-agent"
name = "My Agent"
command = "my-agent"
args = ["--tui"]
env = { MY_AGENT_MODE = "fast" }[plugins]
disabled = ["hello"]
search_paths = ["~/src/my-redshell-plugins"]| Key | Default | Notes |
|---|---|---|
check |
true |
Asks GitHub for a newer release a few seconds after start, then once a day. |
When a newer release exists, a notification offers Download, which opens the release page,
and Skip this version, which stops background checks from mentioning that version again.
RedShell never downloads or installs anything itself: pre-1.0 builds are not code-signed, so
you install updates by hand. The request is an anonymous call to the GitHub API that sends only
RedShell/<version> as its user agent. The time of the last check and the skipped version are
kept in data/update.json, so restarting doesn't check again within a day, and a failed check
waits a day as well. The Check for Updates command in the palette checks right away,
whatever this setting says, and also reports when you are up to date or the check fails.
Releases are compared by version (v0.0.10 is newer than v0.0.9). A pre-release tag such as
v0.1.0-beta.1 is only offered to builds that are pre-releases themselves.
Keys use GPUI's syntax: ctrl-shift-t, ctrl-alt-1, f11, or ctrl-k ctrl-t for a chord. The value is
a command id, which the palette shows. An empty value removes a default binding. A chord holds its
first key back from the shell for up to a second, so the defaults use none.
[keybindings]
"ctrl-t" = "tab.new"
"ctrl-shift-t" = "" # unbind
"ctrl-alt-a" = "agent.launch"
"ctrl-alt-c" = "hello.greet" # plugin commands work too- Built in:
redshell-dark,redshell-light,neutral-dark,neutral-light,nebula,catppuccin-mocha,tokyo-night,nord,gruvbox-dark,rose-pine,solarized-light. - tweakcn / shadcn CSS: put
mytheme.cssinconfig/themes/. Its:rootand.darkblocks becomemytheme-lightandmytheme-dark. oklch, hsl, bareH S% L%, hex and rgb colours are all accepted, blocks may be nested in@layer,var(--x)references (with fallbacks) are resolved, aprefers-color-scheme: darkmedia block counts as.dark, and values RedShell cannot evaluate (such ascolor-mix()) keep the default. RedShell also reads these optional variables:--terminal-background,--terminal-foreground,--terminal-cursor,--terminal-selectionand--terminal-ansi-0…--terminal-ansi-15. - TOML: set
id,name,appearanceandradius, plus[ui](shadcn token names) and[terminal](foreground,background,cursor,cursor-text,selection,ansi-0…ansi-15). Any missing token falls back to the shadcn neutral palette. - From the clipboard: copy the CSS on tweakcn.com and run Import tweakcn Theme from Clipboard.