summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2021-12-19 03:33:23 +0100
committerTharre <tharre3@gmail.com>2021-12-19 03:33:23 +0100
commitb2c760a12622f52a2207644373b27571bcf0ca58 (patch)
tree6a2e67a6dc56dc9c91c43a81435bb53a12dc7b21 /.zshrc
parentac74b67036e8849c1630d67a9756751cb1531500 (diff)
downloaddotfiles-master.tar.gz
dotfiles-master.tar.xz
dotfiles-master.zip
zsh: add 'hist' functionHEADmaster
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index f1c8e42..2c642ed 100644
--- a/.zshrc
+++ b/.zshrc
@@ -112,6 +112,10 @@ function title {
esac
}
+function hist {
+ rg -i "$1" "$HISTFILE"
+}
+
function refresh_tmux {
if [ -n "$TMUX" ]; then
eval $(tmux showenv -s SSH_CONNECTION)