From 4e8503003b044602e89c36d30d56561f09492f63 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 23 May 2025 19:06:18 +0100 Subject: [PATCH] Auto-escape pasted URLs --- zshrc.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zshrc.zsh b/zshrc.zsh index 43781c5..69b7610 100644 --- a/zshrc.zsh +++ b/zshrc.zsh @@ -120,6 +120,10 @@ export BAT_THEME_DARK="Sublime Snazzy" # Source the untracked `extra` file test -e $HOME/.extra && source $HOME/.extra +# Auto quote pasted URLs +autoload -U url-quote-magic +zle -N self-insert url-quote-magic + # Set the prompt # We need zsh git integration # Autoload zsh's `add-zsh-hook` and `vcs_info` functions