From c9741787ef687c37ecd57729591023fdf88d001c Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Tue, 17 May 2022 18:34:57 +0200 Subject: [PATCH] properly escape shell variable strings like ${var} in shell scripts --- home/home.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/home.nix b/home/home.nix index da34058..ba4d362 100644 --- a/home/home.nix +++ b/home/home.nix @@ -389,7 +389,7 @@ in COMPLETION_WAITING_DOTS="true" ### Fix slowness of pastes with zsh-syntax-highlighting.zsh pasteinit() { - OLD_SELF_INSERT=$\{$\{(s.:.)widgets[self-insert]}[2,3]} + OLD_SELF_INSERT=''${''${(s.:.)widgets[self-insert]}[2,3]} zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? }