1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 20:35:34 +02:00

fish: refresh page (#7987)

* Refresh a page:
- better grammar
- better token syntax

* Add reading commands from stdin sample
This commit is contained in:
Emily Grace Seville 2022-06-08 18:09:31 +10:00 committed by GitHub
parent 9fad185656
commit 57aac78e0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,18 +11,22 @@
`fish --no-config` `fish --no-config`
- Execute a command: - Execute specific commands:
`fish --command "{{command}}"` `fish --command "{{echo 'fish is executed'}}"`
- Execute a script: - Execute a specific script:
`fish {{path/to/script.fish}}` `fish {{path/to/script.fish}}`
- Check a script for syntax errors: - Check a specific script for syntax errors:
`fish --no-execute {{path/to/script.fish}}` `fish --no-execute {{path/to/script.fish}}`
- Execute specific commands from stdin:
`{{echo "echo 'fish is executed'"}} | fish`
- Start an interactive shell session in private mode, where the shell does not access old history or save new history: - Start an interactive shell session in private mode, where the shell does not access old history or save new history:
`fish --private` `fish --private`
@ -30,7 +34,3 @@
- Define and export an environmental variable that persists across shell restarts (builtin): - Define and export an environmental variable that persists across shell restarts (builtin):
`set --universal --export {{variable_name}} {{variable_value}}` `set --universal --export {{variable_name}} {{variable_value}}`
- Print the version:
`fish --version`