diff options
Diffstat (limited to 'shell/key-bindings.zsh')
-rw-r--r-- | shell/key-bindings.zsh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index f60bbaea..a173b12f 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -38,6 +38,7 @@ bindkey '\ec' fzf-cd-widget # CTRL-R - Paste the selected command from history into the command line fzf-history-widget() { local selected num + setopt localoptions noglobsubst selected=( $(fc -l 1 | $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r ${=FZF_CTRL_R_OPTS} -q "${LBUFFER//$/\\$}") ) if [ -n "$selected" ]; then num=$selected[1] |