diff --git a/bash.md b/bash.md index fd6c4f4f1..393500911 100644 --- a/bash.md +++ b/bash.md @@ -490,6 +490,7 @@ History ### Operations +| `!!` | Execute last command again | | `!!:s///` | Replace first occurrence of `` to `` in most recent command | | `!!:gs///` | Replace all occurrences of `` to `` in most recent command | | `!$:t` | Expand only basename from last parameter of most recent command | @@ -499,7 +500,9 @@ History ### Slices -| `!!:n` | Expand only `n`th token from most recent command (command is `0`; first param is `1`) | +| `!!:n` | Expand only `n`th token from most recent command (command is `0`; first argument is `1`) | +| `!^` | Expand first argument from most recent command | +| `!$` | Expand last token from most recent command | | `!!:n-m` | Expand range of tokens from most recent command | | `!!:n-$` | Expand `n`th token to last from most recent command |