diff options
author | Marvin Borner | 2019-03-05 01:09:01 +0100 |
---|---|---|
committer | Marvin Borner | 2019-03-05 01:09:01 +0100 |
commit | 55457187d18221e76bd12f0fb2cfab65c49b92fb (patch) | |
tree | 8db042d2d80710d54100c2709ad4332153ac848a /.oh-my-zsh/plugins/history |
Initial commit
Diffstat (limited to '.oh-my-zsh/plugins/history')
-rw-r--r-- | .oh-my-zsh/plugins/history/README.md | 15 | ||||
-rw-r--r-- | .oh-my-zsh/plugins/history/history.plugin.zsh | 8 |
2 files changed, 23 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..dd92868 --- /dev/null +++ b/.oh-my-zsh/plugins/history/README.md @@ -0,0 +1,15 @@ +## history + +Provides a couple of convenient aliases for using the `history` command to examine your command line history. + +### Requirements + +* None. + +### Usage + +* If `h` is called, your command history is listed. Equivalent to using `history` + +* If `hsi` is called with an argument, a **case insensitive** `grep` search is performed on your command history, looking for commands that match the argument provided + +* If `hsi` is called without an argument you will help on `grep` arguments
\ No newline at end of file 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..0f4aa4b --- /dev/null +++ b/.oh-my-zsh/plugins/history/history.plugin.zsh @@ -0,0 +1,8 @@ +alias h='history' + +function hs +{ + history | grep $* +} + +alias hsi='hs -i' |