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