Add zhfind command
Can be used to fuzzy search through shell history.
This commit is contained in:
parent
510443abdf
commit
34f7cd7da9
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
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
|
# Display timestamped recent command history
|
||||||
alias zh="fc -l -d -D"
|
alias zh="fc -l -d -D"
|
||||||
|
# Display fuzzy-searchable history
|
||||||
|
alias zhfind="history | tac | fzf -l 20"
|
||||||
|
|
||||||
# Display your current ip address
|
# Display your current ip address
|
||||||
alias myip="curl -s icanhazip.com"
|
alias myip="curl -s icanhazip.com"
|
||||||
|
|
Loading…
Reference in a new issue