From 97f0e9b445fb781ff46b0f954517f53be6e0ce4e Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:00:13 +0300 Subject: [PATCH] fc: refresh page (#14019) Co-authored-by: Wiktor Perskawiec Co-authored-by: Juri Dispan --- pages/common/fc.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pages/common/fc.md b/pages/common/fc.md index b00d71906a..836d2814d2 100644 --- a/pages/common/fc.md +++ b/pages/common/fc.md @@ -1,9 +1,9 @@ # fc -> Open the most recent command and edit it. +> Open the most recent command for editing and then run it. > More information: . -- Open in the default system editor: +- Open the last command in the default system editor and run it after editing: `fc` @@ -19,6 +19,14 @@ `fc -l -r` -- List commands in a given interval: +- Edit and run a command from history: + +`fc {{number}}` + +- Edit commands in a given interval and run them: `fc '{{416}}' '{{420}}'` + +- Display help: + +`fc --help`