]> git.sev.monster Git - dotfiles.git/commitdiff
zsh: more escaping for history search master
authorsev <git@sev.monster>
Sun, 5 Jan 2025 09:13:32 +0000 (03:13 -0600)
committersev <git@sev.monster>
Sun, 5 Jan 2025 09:13:32 +0000 (03:13 -0600)
etc/zsh/.zshrc

index 025ba865184384a2af0e2043c3f476313b6fec5c..e2192d8acbcc15bf3926f1e3ba97ab39c708a595 100644 (file)
@@ -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" \
This page took 0.039567 seconds and 4 git commands to generate.