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:
parent
3c84d6ae1a
commit
a85a39fc40
1 changed files with 1 additions and 1 deletions
|
@ -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 '()')"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue