Skip to content

OMZ: pasting speed / automatic changing of pasted URLs / DISABLE_MAGIC_FUNCTIONS=true is not respected #240

@qoreQyaS

Description

@qoreQyaS

hello,

don't know if this is zsh-quickstart-kit related so this ain't really a bug report (yet?)
1: i was always wondering why pasting into zsh was horribly slow.
2: today i figured something changes (escapes) urls when i paste them

for both the culprit is omz:url-quote-magic
it basicly checks eveything you paste and escapes urls when it thinks its neccessary (it also does it when they are quoted...)

there is an option to switch it off
kindly see: ohmyzsh/ohmyzsh#5569

one shall put DISABLE_MAGIC_FUNCTIONS=true in ~/.zshrc before source $ZSH/oh-my-zsh.sh
no matter where i put it (export, and plain), i tried ~/.zshrc (the very top), ~/.zsh-quickstart-local-plugins (also top, right before the first omz mention, outside of the condition), and ~/.zshrc.d/999-env

i was able to deactivate it by commenting out line 4-16 in ~/.zgenom/ohmyzsh/ohmyzsh/___/lib/misc.zsh
https://github.com/ohmyzsh/ohmyzsh/blob/a3c579bf27b34942d4c6ad64e7cfd75788b05ea3/lib/misc.zsh#L4-L16

what do you think? is this zgenom related, kit related or an omz issue?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions