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 fix
feature/windows-fix-syntax-2
Emily Grace Seville 2021-11-26 06:46:27 +10:00 committed by GitHub
parent 7c8d1d5aa2
commit b3cd39d9b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 7 deletions

View File

@ -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}}`