sh: Fix fzfhistory alias

Alias previously would only search the x last history entries (~20),
this fixes it to search through the complete shell history.
This commit is contained in:
Marty Oehme 2020-09-25 11:26:57 +02:00
parent 3c84d6ae1a
commit a85a39fc40
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -42,7 +42,7 @@ alias myip="curl -s icanhazip.com"
# fzf
if exist fzf; then
# Display fuzzy-searchable history
alias fzfhistory="history | fzf --tac --height 20"
alias fzfhistory="history 0 | fzf --tac --height 20"
fzfman() {
man "$(apropos --long "$1" | fzf | awk '{print $2, $1}' | tr -d '()')"
}