2018-01-02 18:00:12 +00:00
|
|
|
# fish
|
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
> The Friendly Interactive SHell, 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 18:00:12 +00:00
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
- Start an interactive shell session:
|
2018-01-02 18:00:12 +00:00
|
|
|
|
|
|
|
`fish`
|
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
- Execute a command and then exit:
|
2018-01-02 18:00:12 +00:00
|
|
|
|
|
|
|
`fish -c "{{command}}"`
|
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
- Execute a script:
|
2018-01-02 18:00:12 +00:00
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
`fish {{path/to/script.fish}}`
|
2018-01-02 18:00:12 +00:00
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
- Check a script for syntax errors:
|
2018-01-02 18:00:12 +00:00
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
`fish --no-execute {{path/to/script.fish}}`
|
|
|
|
|
|
|
|
- Start an interactive shell session in private mode, where the shell does not access old history or save new history:
|
|
|
|
|
|
|
|
`fish --private`
|
2018-01-02 18:00:12 +00:00
|
|
|
|
|
|
|
- Display version information and exit:
|
|
|
|
|
|
|
|
`fish --version`
|
2019-10-07 17:55:45 +01:00
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
- Set and export environmental variables that persist across shell restarts (from within the shell only):
|
2019-10-07 17:55:45 +01:00
|
|
|
|
|
|
|
`set -Ux {{variable_name}} {{variable_value}}`
|