diff --git a/zsh.md b/zsh.md index ecc833b2e..d755f47bb 100644 --- a/zsh.md +++ b/zsh.md @@ -6,19 +6,20 @@ layout: 2017/sheet ### Expressions -| Expression | Example | Description -| --- | --- | --- -| `!!` | `sudo !!` | Last command (`sudo !!`) -| --- | --- | --- -| `!*` | `vim !*` | Last command's parameters (`vim !*`) -| `!^` | | Last command's first parameter -| `!$` | | Last command's last parameter -| --- | --- | --- -| `!?ls` | `sudo !?mv` | Command and params of last `ls` command -| `!?ls?:*` | | Params of last `ls` command -| --- | --- | --- -| `*(m0)` | `rm *(m0)` | Last modified today -| `*(m-4)` | | Last modified <4 days ago +| Expression | Example | Description +| --- | --- | --- +| `!!` | `sudo !!` | Last command (`sudo !!`) +| --- | --- | --- +| `!*` | `vim !*` | Last command's parameters (`vim !*`) +| `!^` | | Last command's first parameter +| `!$` | | Last command's last parameter +| --- | --- | --- +| `!?ls` `` | `sudo !?mv` `` | Command and params of last `ls` command +| `!?ls?:*` `` | | Params of last `ls` command +| --- | --- | --- +| `*(m0)` | `rm *(m0)` | Last modified today +| `*(m-4)` | | Last modified <4 days ago +{: .-headers} ### Change default shell