f10cd5281d805bb5679dd46b304d9b8997f98981
- Author
- Patryk Krawaczyński <nfsec@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(history): add `hl` alias (#11990)
Diff
1diff --git a/plugins/history/README.md b/plugins/history/README.md
2index a9d480f46b2299a11ea226f69cfb7adb6e8b08fe..73d6a5052e6db1ff78f31646f0c5e8f229b1c447 100644
3--- a/plugins/history/README.md
4+++ b/plugins/history/README.md
5@@ -13,5 +13,6 @@ plugins=(... history)
6 | Alias | Command | Description |
7 |-------|----------------------|------------------------------------------------------------------|
8 | `h` | `history` | Prints your command history |
9+| `hl` | `history \| less` | Pipe history output to less to search and navigate it easily |
10 | `hs` | `history \| grep` | Use grep to search your command history |
11 | `hsi` | `history \| grep -i` | Use grep to do a case-insensitive search of your command history |
12diff --git a/plugins/history/history.plugin.zsh b/plugins/history/history.plugin.zsh
13index 9cee48fe4b7c7f3c680c31af299b97fe1e4475fa..fb3e313893536a98b5422689d2d39009c5ea4c3e 100644
14--- a/plugins/history/history.plugin.zsh
15+++ b/plugins/history/history.plugin.zsh
16@@ -1,3 +1,4 @@
17 alias h='history'
18+alias hl='history | less'
19 alias hs='history | grep'
20 alias hsi='history | grep -i'