I have already tried the solution at How to disable zsh substitution/autocomplete with URL and backslashes, but this is no longer working.
If I paste a URL, it keeps putting backslashes. Very annoying.
For example:
https://www.google.com?test=sample1&test2=sample3
will become:
curl -X POST "https://www.google.com\?test\=sample1\&test2\=sample3"
Here's the top of my ~/.zshrc
file:
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
DISABLE_MAGIC_FUNCTIONS=true
export ZSH=/Users/myuser/.oh-my-zsh
I have already tried to re-call the source, no luck. The only way I've been able to get around this is to open up a bash shell instead, which can be extremely inconvenient.
sh
ordash
orksh
, and paste the string there. – Rutlandcurl -X POST ''
, and then paste between the quotes? And what happens if the string to be pasted, does not look exactly like a complete URL, but is just (for instance)sample1&test2
? – Rutlandurl-quote-magic
widget. Backslashes or double-quoting the entire URL would be correct; both is not. What happens if you disable oh-my-zsh? – Aureliaaurelianoh-my-zsh
then I can paste the URL just fine without it adding the backslashes. The only plugin that I have in the plugins directory with "url" in it is urltools – LiteratimDISABLE_MAGIC_FUNCTIONS="true"
to the top of my ~/.zshrc file and that fixed this issue. Can you post this as an answer so I can give you credit? – Literatim