|
|
|
@ -62,7 +62,7 @@ if command -v perl > /dev/null; then
|
|
|
|
|
set +o pipefail
|
|
|
|
|
builtin fc -lnr -2147483648 |
|
|
|
|
|
last_hist=$(HISTTIMEFORMAT='' builtin history 1) command perl -n -l0 -e "$script" |
|
|
|
|
|
FZF_DEFAULT_OPTS=$(__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort --highlight-line ${FZF_CTRL_R_OPTS-} +m --read0") \
|
|
|
|
|
FZF_DEFAULT_OPTS=$(__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort --wrap-sign '"$'\t'"↳ ' --highlight-line ${FZF_CTRL_R_OPTS-} +m --read0") \
|
|
|
|
|
FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd) --query "$READLINE_LINE"
|
|
|
|
|
) || return
|
|
|
|
|
READLINE_LINE=$(command perl -pe 's/^\d*\t//' <<< "$output")
|
|
|
|
@ -91,7 +91,7 @@ else # awk - fallback for POSIX systems
|
|
|
|
|
set +o pipefail
|
|
|
|
|
builtin fc -lnr -2147483648 2> /dev/null | # ( $'\t '<lines>$'\n' )* ; <lines> ::= [^\n]* ( $'\n'<lines> )*
|
|
|
|
|
command $__fzf_awk "$script" | # ( <counter>$'\t'<lines>$'\000' )*
|
|
|
|
|
FZF_DEFAULT_OPTS=$(__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort --highlight-line ${FZF_CTRL_R_OPTS-} +m --read0") \
|
|
|
|
|
FZF_DEFAULT_OPTS=$(__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort --wrap-sign '"$'\t'"↳ ' --highlight-line ${FZF_CTRL_R_OPTS-} +m --read0") \
|
|
|
|
|
FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd) --query "$READLINE_LINE"
|
|
|
|
|
) || return
|
|
|
|
|
READLINE_LINE=${output#*$'\t'}
|
|
|
|
|