diff --git a/pages/common/fish.md b/pages/common/fish.md index e95f64b6b6..36993f64ea 100644 --- a/pages/common/fish.md +++ b/pages/common/fish.md @@ -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`