diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index 29721fc98a1381ab7acc62df9c235a3b7536df40..5817ee809c737e3ea948411879b4402a96a32028 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -38,7 +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 - selected=( $(fc -l 1 | $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r -q "$LBUFFER") ) + selected=( $(fc -l 1 | $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r -q "${LBUFFER//$/\\$}") ) if [ -n "$selected" ]; then num=$selected[1] if [ -n "$num" ]; then