From a087e26fb3770cdcd3f08c41bef2a762a8a1cecd Mon Sep 17 00:00:00 2001 From: Marco D'Agostini Date: Fri, 3 Apr 2020 12:32:03 -0500 Subject: [PATCH] Example to section `Insert previous arguments` --- bash-zsh_TerminalShorcuts.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bash-zsh_TerminalShorcuts.md b/bash-zsh_TerminalShorcuts.md index 4129b0b..8b298d5 100644 --- a/bash-zsh_TerminalShorcuts.md +++ b/bash-zsh_TerminalShorcuts.md @@ -9,6 +9,17 @@ *In Linux you can repeat commands to go back in history* +### Example: + +Last command is: + + mv foo bar + + - Alt+0+.: insert first argument of last command = `mv` + - Alt+2+.: insert last 2nd argument of last command = `foo` + - up , Ctrl+w: last command without the last word = `mv foo` + + ## Cut/Paste commands *(relative to cursor's position)* - Ctrl+w: cuts last word