From 1adb619afab90ef4dae017128625326aef31ee4b Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Tue, 8 Oct 2024 18:37:14 +0300 Subject: [PATCH] !: add examples (#14010) * Update !.md * Update !.md --- pages/common/!.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/!.md b/pages/common/!.md index 7f98faddfd..7ff28e84e1 100644 --- a/pages/common/!.md +++ b/pages/common/!.md @@ -26,3 +26,11 @@ - Substitute with the last argument of the latest command: `{{command}} !$` + +- Substitute with the last command but without the last argument: + +`!:-` + +- Print last command that starts with a string without executing it: + +`!{{string}}:p`