From 55457187d18221e76bd12f0fb2cfab65c49b92fb Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 5 Mar 2019 01:09:01 +0100 Subject: Initial commit --- .oh-my-zsh/plugins/history/README.md | 15 +++++++++++++++ .oh-my-zsh/plugins/history/history.plugin.zsh | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 .oh-my-zsh/plugins/history/README.md create mode 100644 .oh-my-zsh/plugins/history/history.plugin.zsh (limited to '.oh-my-zsh/plugins/history') 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' -- cgit v1.2.3