From: sev Date: Sun, 5 Jan 2025 09:13:32 +0000 (-0600) Subject: zsh: more escaping for history search X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/HEAD zsh: more escaping for history search --- 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" \