Add zhfind command

Can be used to fuzzy search through shell history.
This commit is contained in:
Marty Oehme 2019-06-07 11:39:38 +02:00
parent 510443abdf
commit 34f7cd7da9

View file

@ -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"