diff options
Diffstat (limited to 'oh-my-zsh/plugins/history')
-rw-r--r-- | oh-my-zsh/plugins/history/README.md | 17 | ||||
-rw-r--r-- | oh-my-zsh/plugins/history/history.plugin.zsh | 3 |
2 files changed, 20 insertions, 0 deletions
diff --git a/oh-my-zsh/plugins/history/README.md b/oh-my-zsh/plugins/history/README.md new file mode 100644 index 0000000..a9d480f --- /dev/null +++ b/oh-my-zsh/plugins/history/README.md @@ -0,0 +1,17 @@ +# 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 | +| `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/oh-my-zsh/plugins/history/history.plugin.zsh b/oh-my-zsh/plugins/history/history.plugin.zsh new file mode 100644 index 0000000..9cee48f --- /dev/null +++ b/oh-my-zsh/plugins/history/history.plugin.zsh @@ -0,0 +1,3 @@ +alias h='history' +alias hs='history | grep' +alias hsi='history | grep -i' |