浏览代码

feat(history): add `hl` alias (#11990)

Patryk Krawaczyński 7 月之前
父节点
当前提交
f10cd5281d
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      plugins/history/README.md
  2. 1 0
      plugins/history/history.plugin.zsh

+ 1 - 0
plugins/history/README.md

@@ -13,5 +13,6 @@ plugins=(... history)
 | Alias | Command              | Description                                                      |
 | Alias | Command              | Description                                                      |
 |-------|----------------------|------------------------------------------------------------------|
 |-------|----------------------|------------------------------------------------------------------|
 | `h`   | `history`            | Prints your command history                                      |
 | `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                          |
 | `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 |
 | `hsi` | `history \| grep -i` | Use grep to do a case-insensitive search of your command history |

+ 1 - 0
plugins/history/history.plugin.zsh

@@ -1,3 +1,4 @@
 alias h='history'
 alias h='history'
+alias hl='history | less'
 alias hs='history | grep'
 alias hs='history | grep'
 alias hsi='history | grep -i'
 alias hsi='history | grep -i'