2020-03-11 11:57:46 -07:00
|
|
|
# history plugin
|
2015-02-26 19:56:14 -07:00
|
|
|
|
|
|
|
Provides a couple of convenient aliases for using the `history` command to examine your command line history.
|
|
|
|
|
2020-03-11 11:57:46 -07:00
|
|
|
To use it, add `history` to the plugins array in your zshrc file:
|
2015-02-26 19:56:14 -07:00
|
|
|
|
2020-03-11 11:57:46 -07:00
|
|
|
```zsh
|
|
|
|
plugins=(... history)
|
|
|
|
```
|
2015-02-26 19:56:14 -07:00
|
|
|
|
2020-03-11 11:57:46 -07:00
|
|
|
## Aliases
|
2015-02-26 19:56:14 -07:00
|
|
|
|
2020-03-11 11:57:46 -07:00
|
|
|
| Alias | Command | Description |
|
|
|
|
|-------|----------------------|------------------------------------------------------------------|
|
|
|
|
| `h` | `history` | Prints your command history |
|
2023-10-18 04:59:28 -07:00
|
|
|
| `hl` | `history \| less` | Pipe history output to less to search and navigate it easily |
|
2020-03-11 11:57:46 -07:00
|
|
|
| `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 |
|