From 34f7cd7da98eb35622a8109829d78af69c698165 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 7 Jun 2019 11:39:38 +0200 Subject: [PATCH] Add zhfind command Can be used to fuzzy search through shell history. --- .config/shell/rc.d/base-aliases.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/shell/rc.d/base-aliases.sh b/.config/shell/rc.d/base-aliases.sh index 970cd4a..f3b7617 100644 --- a/.config/shell/rc.d/base-aliases.sh +++ b/.config/shell/rc.d/base-aliases.sh @@ -11,6 +11,8 @@ fi alias zhtop="history | awk '{a[\$2]++} END{for(i in a){printf \"%5d\t%s\n\",a[i],i}}' | sort -rn | head" # Display timestamped recent command history alias zh="fc -l -d -D" +# Display fuzzy-searchable history +alias zhfind="history | tac | fzf -l 20" # Display your current ip address alias myip="curl -s icanhazip.com"