mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* fish tldr clean-up: - short options preferred over long ones - page made more consistent with elvish page (check my PR) - commands reordered: interactive commands, non-interactive commands - set command example removed because it is example of Fish language but not of fish command * Update md to be consistent with #7416 issue: * Simplify version print command description * Use long options * --no-execute change: it is assumed that script is not executed by default after syntax check * Return set -Ux example * set builtin description fix
808 B
808 B
fish
The Friendly Interactive SHell, a command-line interpreter designed to be user friendly. More information: https://fishshell.com.
- Start an interactive shell session:
fish
- Start an interactive shell session without loading startup configs:
fish --no-config
- Execute a command:
fish --command "{{command}}"
- Execute a script:
fish {{path/to/script.fish}}
- Check a script for syntax errors:
fish --no-execute {{path/to/script.fish}}
- Start an interactive shell session in private mode, where the shell does not access old history or save new history:
fish --private
- Define and export an environmental variable that persists across shell restarts (builtin):
set --universal --export {{variable_name}} {{variable_value}}
- Print the version:
fish --version