tldr/pages/common/fish.md

30 lines
529 B
Markdown
Raw Normal View History

# fish
> The Friendly Interactive SHell.
2018-02-11 13:15:58 +00:00
> A command-line interpreter designed to be user friendly.
2019-06-07 11:58:13 +01:00
> 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}}`