Skip to content

Commit

Permalink
Search using the current command as query
Browse files Browse the repository at this point in the history
  • Loading branch information
vitobotta committed Oct 14, 2023
1 parent 9e56966 commit a4a902e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh.include.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fzf-history-widget() {
setopt extendedglob
fc -R
LBUFFER=$(fc -l -n -1 0 | awk '!x[$0]++' | fzf --height=40% --border --prompt="Select command: ")
LBUFFER=$(fc -l -n -1 0 | awk '!x[$0]++' | fzf --height=40% --border --prompt="Select command: " --query="$LBUFFER")
zle redisplay
}

Expand Down

0 comments on commit a4a902e

Please sign in to comment.