[bash] use fzf history scheme

This commit is contained in:
odrling 2024-05-04 10:17:28 +02:00
parent 0a552ddc5b
commit 8a4b36171f
No known key found for this signature in database
GPG key ID: EC907F69A27A90C5

View file

@ -54,7 +54,8 @@ __fzf_cd__() {
__fzf_history__() {
local output
local output args
[ "${__fzfcmd}" = fzf ] && args=--scheme=history
output=$(command fc -l -n -r 1 | sed 's/^[\t ]*//' | ${__fzfcmd} --query="$READLINE_LINE")
READLINE_LINE=${output#*$'\t'}
if [[ -z "$READLINE_POINT" ]]; then