From d901efe31ad60c05492b1ecb63fc8cc1143ff650 Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Wed, 10 Apr 2024 16:38:27 +0000 Subject: [PATCH] Add aliases for easy searching of history --- bash/.aliases | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bash/.aliases b/bash/.aliases index 01e91d2..71ca0be 100644 --- a/bash/.aliases +++ b/bash/.aliases @@ -39,6 +39,13 @@ alias df="df -h" # Human readable file size inspection alias du="du -sh" +# History searches +alias hgrep='history | grep --color' +alias phgrep="cat ${PERSISTENT_HISTFILE} | grep --color" + +alias hfzf='history | fzf' +alias phfzf="cat ${PERSISTENT_HISTFILE} | fzf" + #{- NETWORKING -}#