mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 12: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:
parent
9fad185656
commit
57aac78e0d
1 changed files with 8 additions and 8 deletions
|
@ -11,18 +11,22 @@
|
|||
|
||||
`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}}`
|
||||
|
||||
- Check a script for syntax errors:
|
||||
- Check a specific script for syntax errors:
|
||||
|
||||
`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:
|
||||
|
||||
`fish --private`
|
||||
|
@ -30,7 +34,3 @@
|
|||
- Define and export an environmental variable that persists across shell restarts (builtin):
|
||||
|
||||
`set --universal --export {{variable_name}} {{variable_value}}`
|
||||
|
||||
- Print the version:
|
||||
|
||||
`fish --version`
|
||||
|
|
Loading…
Add table
Reference in a new issue