Skip to content

Commit 5706445

Browse files
authored
docs(launching-sessions): plain terminal start-up writes in the data folder, not your files (#1392) (#1394)
Fix the plain-terminal start-up wording in docs/launching-sessions.md. Fixes #1392.
1 parent a1d6d37 commit 5706445

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎docs/launching-sessions.md‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,18 +207,21 @@ The panel shell gets the same function.
207207

208208
For bash, zsh and fish on Linux and macOS, the function is defined without
209209
being typed into the shell, so it appears neither after the prompt nor in the
210-
shell's history:
210+
shell's history. If the generated files cannot be written, bash and zsh get
211+
the typed definition instead, as the other shells do:
211212

212213
| Shell | How |
213214
|---|---|
214215
| bash (Linux, macOS) | `bash --rcfile <data dir>/shell-init/bashrc -i`: a non-login shell whose rcfile reads what a login shell would (`/etc/profile`, then the first of `~/.bash_profile`, `~/.bash_login`, `~/.profile`), then defines the function. Being non-login, `logout` refuses (use `exit`) and `~/.bash_logout` does not run |
215216
| zsh (Linux, macOS) | `ZDOTDIR=<data dir>/shell-init/zsh`; the generated files source yours, then define the function |
216217
| fish | `--init-command` |
217-
| sh, dash, ksh and other POSIX shells, WSL, bash on Windows (Git Bash, MSYS2) | the definition is typed into the shell 300 ms after it starts, led by a space and followed by `clear`. It stays out of the history only where the shell ignores space-led lines (bash's `HISTCONTROL=ignorespace`/`ignoreboth`, Ubuntu's default; zsh's `HIST_IGNORE_SPACE`) |
218+
| every other shell (sh, dash, ksh, tcsh, csh…), WSL, and on Windows every shell but PowerShell, cmd, nushell and fish (Git Bash, MSYS2 bash or zsh) | the definition is typed into the shell 300 ms after it starts, led by a space and followed by `clear`. It stays out of the history only where the shell ignores space-led lines (bash's `HISTCONTROL=ignorespace`/`ignoreboth`, Ubuntu's default; zsh's `HIST_IGNORE_SPACE`) |
218219
| PowerShell, cmd, nushell | no function |
219220

220221
The generated files live in `shell-init/` in the data directory, next to
221-
`switchboard.db`; nothing under `$HOME` is written.
222+
`switchboard.db` (`~/.switchboard` for the installed app, `~/.switchboard-dev`
223+
when run from source, or `SWITCHBOARD_DATA_DIR`); none of your shell start-up
224+
files is written or changed.
222225

223226
When a terminal's shell exits, its view closes and its row leaves the sidebar;
224227
**+** → **Terminal** starts a new one.

0 commit comments

Comments
 (0)