Auto-escape pasted URLs

This commit is contained in:
Jonny Barnes 2025-05-23 19:06:18 +01:00
parent 01cfce56d0
commit 4e8503003b
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8

View file

@ -120,6 +120,10 @@ export BAT_THEME_DARK="Sublime Snazzy"
# Source the untracked `extra` file # Source the untracked `extra` file
test -e $HOME/.extra && source $HOME/.extra 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 # Set the prompt
# We need zsh git integration # We need zsh git integration
# Autoload zsh's `add-zsh-hook` and `vcs_info` functions # Autoload zsh's `add-zsh-hook` and `vcs_info` functions