summaryrefslogtreecommitdiff
path: root/plugins/history/README.md
blob: 73d6a5052e6db1ff78f31646f0c5e8f229b1c447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# history plugin

Provides a couple of convenient aliases for using the `history` command to examine your command line history.

To use it, add `history` to the plugins array in your zshrc file:

```zsh
plugins=(... history)
```

## Aliases

| Alias | Command              | Description                                                      |
|-------|----------------------|------------------------------------------------------------------|
| `h`   | `history`            | Prints your command history                                      |
| `hl`  | `history \| less`    | Pipe history output to less to search and navigate it easily     |
| `hs`  | `history \| grep`    | Use grep to search your command history                          |
| `hsi` | `history \| grep -i` | Use grep to do a case-insensitive search of your command history |