mirror of https://github.com/CrimsonTome/tldr.git
fish: update page (#7415)
* 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 fixfeature/windows-fix-syntax-2
parent
7c8d1d5aa2
commit
b3cd39d9b6
|
@ -7,9 +7,13 @@
|
|||
|
||||
`fish`
|
||||
|
||||
- Execute a command and then exit:
|
||||
- Start an interactive shell session without loading startup configs:
|
||||
|
||||
`fish -c "{{command}}"`
|
||||
`fish --no-config`
|
||||
|
||||
- Execute a command:
|
||||
|
||||
`fish --command "{{command}}"`
|
||||
|
||||
- Execute a script:
|
||||
|
||||
|
@ -23,10 +27,10 @@
|
|||
|
||||
`fish --private`
|
||||
|
||||
- Display version information and exit:
|
||||
- Define and export an environmental variable that persists across shell restarts (builtin):
|
||||
|
||||
`set --universal --export {{variable_name}} {{variable_value}}`
|
||||
|
||||
- Print the version:
|
||||
|
||||
`fish --version`
|
||||
|
||||
- Set and export environmental variables that persist across shell restarts (from within the shell only):
|
||||
|
||||
`set -Ux {{variable_name}} {{variable_value}}`
|
||||
|
|
Loading…
Reference in New Issue