mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 11:20:11 +08:00
Add fish private mode info to changelog and manual
This commit is contained in:
parent
ebb3a3a16e
commit
f695284a84
@ -29,6 +29,7 @@ fish 3.0 is a major release which brings with it both improvements in functional
|
||||
### Syntax/semantic changes and new builtins
|
||||
- fish now supports `&&`, `||`, and `!` (#4620).
|
||||
- Variables may be used as commands (#154).
|
||||
- fish may be started in private mode via `fish --private` or `fish -P`. Private mode fish sessions do not have access to the history file and any commands evaluated in private mode are not persisted for future sessions. A session variable `$fish_private_mode` can be queried to detect private mode and adjust the behavior of scripts accordingly to respect the user's wish for privacy.
|
||||
- A new feature flags mechanism is added for staging deprecations and breaking changes. Feature flags may be specified at launch with `fish --features ...` or by setting the universal `fish_features` variable. (#4940)
|
||||
- `wait` builtin is added for waiting on processes (#4498).
|
||||
- `math` is now a builtin rather than a wrapper around `bc` (#3157). The default scale is now 6, so that floating point computations produce decimals (#4478).
|
||||
|
@ -1360,6 +1360,9 @@ When fish waits for input, it will display a prompt by evaluating the `fish_prom
|
||||
|
||||
If a function named `fish_greeting` exists, it will be run when entering interactive mode. Otherwise, if an environment variable named `fish_greeting` exists, it will be printed.
|
||||
|
||||
\subsection private-mode Private mode
|
||||
|
||||
fish supports launching in private mode via `fish --private` (or `fish -P` for short). In private mode, old history is not available and any interactive commands you execute will not be appended to the global history file, making it useful both for avoiding inadvertently leaking personal information (e.g. for screencasts) and when dealing with sensitive information to prevent it being persisted to disk. You can query the global variable `fish_private_mode` (`if set -q fish_private_mode ...`) if you would like to respect the user's wish for privacy and alter the behavior of your own fish scripts.
|
||||
|
||||
\subsection event Event handlers
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user