summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatryk KrawaczyƄski <nfsec@users.noreply.github.com>2023-10-18 13:59:28 +0200
committerGitHub <noreply@github.com>2023-10-18 13:59:28 +0200
commitf10cd5281d805bb5679dd46b304d9b8997f98981 (patch)
tree831e0e4217434baa7db29f4fdb6deab859d3f5af
parentd3112d67a3eb55fc39975f917467704ebb2c296b (diff)
downloadzsh-f10cd5281d805bb5679dd46b304d9b8997f98981.tar.gz
zsh-f10cd5281d805bb5679dd46b304d9b8997f98981.tar.bz2
zsh-f10cd5281d805bb5679dd46b304d9b8997f98981.zip
feat(history): add `hl` alias (#11990)
-rw-r--r--plugins/history/README.md1
-rw-r--r--plugins/history/history.plugin.zsh1
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/history/README.md b/plugins/history/README.md
index a9d480f46..73d6a5052 100644
--- a/plugins/history/README.md
+++ b/plugins/history/README.md
@@ -13,5 +13,6 @@ plugins=(... history)
| 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 |
diff --git a/plugins/history/history.plugin.zsh b/plugins/history/history.plugin.zsh
index 9cee48fe4..fb3e31389 100644
--- a/plugins/history/history.plugin.zsh
+++ b/plugins/history/history.plugin.zsh
@@ -1,3 +1,4 @@
alias h='history'
+alias hl='history | less'
alias hs='history | grep'
alias hsi='history | grep -i'