You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5706445
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/launching-sessions.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,18 +207,21 @@ The panel shell gets the same function.
207
207
208
208
For bash, zsh and fish on Linux and macOS, the function is defined without
209
209
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:
211
212
212
213
| Shell | How |
213
214
|---|---|
214
215
| 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 |
215
216
| zsh (Linux, macOS) |`ZDOTDIR=<data dir>/shell-init/zsh`; the generated files source yours, then define the function |
216
217
| 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`) |
218
219
| PowerShell, cmd, nushell | no function |
219
220
220
221
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.
222
225
223
226
When a terminal's shell exits, its view closes and its row leaves the sidebar;
0 commit comments