From d9bc5d21713528d616f60bb7d397d03920da3597 Mon Sep 17 00:00:00 2001 From: sev Date: Sun, 5 Jan 2025 03:13:32 -0600 Subject: [PATCH] zsh: more escaping for history search --- etc/zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/zsh/.zshrc b/etc/zsh/.zshrc index 025ba86..e2192d8 100644 --- a/etc/zsh/.zshrc +++ b/etc/zsh/.zshrc @@ -221,7 +221,7 @@ if [[ -v commands[fzf] ]] { --scheme=history -e -n 1,3.. \ +s \ -m --bind 'ctrl-d:execute-silent(sed -i -f <( - sed -Ee '\''s/[$*.[\^/]/\\&/g;s~.*~/^\\(: [0-9]\\+:[0-9]\\+;\\)\\?&$/d~'\'' {+f3..} + sed -Ee '\''s/[$*.[\]()\^/]/\\&/g;s~.*~/^\\(: [0-9]\\+:[0-9]\\+;\\)\\?&$/d~'\'' {+f3..} ) '$h')+abort' \ --preview-window=hidden --height=20% \ --with-shell "${0:a} -dfc" \ -- 2.48.1