From 57aac78e0d1b7f1b7969db6a63cad767ad0bf6b7 Mon Sep 17 00:00:00 2001 From: Emily Grace Seville Date: Wed, 8 Jun 2022 18:09:31 +1000 Subject: [PATCH] fish: refresh page (#7987) * Refresh a page: - better grammar - better token syntax * Add reading commands from stdin sample --- pages/common/fish.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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`