2018-01-02 13:00:12 -05:00
|
|
|
# fish
|
|
|
|
|
2018-01-02 23:36:52 -05:00
|
|
|
> The Friendly Interactive SHell.
|
2018-02-11 14:15:58 +01:00
|
|
|
> A command-line interpreter designed to be user friendly.
|
2019-06-07 11:58:13 +01:00
|
|
|
> More information: <https://fishshell.com>.
|
2018-01-02 13:00:12 -05:00
|
|
|
|
|
|
|
- Start interactive shell:
|
|
|
|
|
|
|
|
`fish`
|
|
|
|
|
|
|
|
- Execute a command:
|
|
|
|
|
|
|
|
`fish -c "{{command}}"`
|
|
|
|
|
|
|
|
- Run commands from a file:
|
|
|
|
|
|
|
|
`fish {{file.fish}}`
|
|
|
|
|
2018-01-05 21:19:37 -05:00
|
|
|
- Check a file for syntax errors:
|
2018-01-02 13:00:12 -05:00
|
|
|
|
|
|
|
`fish --no-execute {{file.fish}}`
|
|
|
|
|
|
|
|
- Display version information and exit:
|
|
|
|
|
|
|
|
`fish --version`
|
2019-10-07 11:55:45 -05:00
|
|
|
|
|
|
|
- Set and export environmental variables that persist across restarts:
|
|
|
|
|
|
|
|
`set -Ux {{variable_name}} {{variable_value}}`
|