mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 11:29:01 +00:00
Merge pull request #19 from wellle/zsh_history
Feed all zsh history into fzf (not only most recent)
This commit is contained in:
commit
c1be834ff9
2
install
2
install
@ -150,7 +150,7 @@ bindkey '\ec' fzf-cd-widget
|
|||||||
|
|
||||||
# CTRL-R - Paste the selected command from history into the command line
|
# CTRL-R - Paste the selected command from history into the command line
|
||||||
fzf-history-widget() {
|
fzf-history-widget() {
|
||||||
LBUFFER=$(history | fzf +s | sed "s/ *[0-9]* *//")
|
LBUFFER=$(history -$HISTSIZE | fzf +s | sed "s/ *[0-9]* *//")
|
||||||
zle redisplay
|
zle redisplay
|
||||||
}
|
}
|
||||||
zle -N fzf-history-widget
|
zle -N fzf-history-widget
|
||||||
|
Loading…
Reference in New Issue
Block a user