zsh: add table headers

This commit is contained in:
Rico Sta. Cruz 2017-10-20 18:22:32 +08:00
parent cd9e827041
commit e548524ad1
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 14 additions and 13 deletions

27
zsh.md
View File

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