1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 01:22:10 +02:00
tldr/pages/common/fish.md
2019-10-07 18:55:45 +02:00

29 lines
529 B
Markdown

# fish
> The Friendly Interactive SHell.
> A command-line interpreter designed to be user friendly.
> More information: <https://fishshell.com>.
- Start interactive shell:
`fish`
- Execute a command:
`fish -c "{{command}}"`
- Run commands from a file:
`fish {{file.fish}}`
- Check a file for syntax errors:
`fish --no-execute {{file.fish}}`
- Display version information and exit:
`fish --version`
- Set and export environmental variables that persist across restarts:
`set -Ux {{variable_name}} {{variable_value}}`