diff --git a/lib/functions.zsh b/lib/functions.zsh index 330b0e3e9..0a45d6a47 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -178,7 +178,8 @@ function omz_urlencode() { setopt norematchpcre local -a opts - zparseopts -D -E -a opts r m P + # Quote the specs so global aliases (e.g. common-aliases' P) don't expand here + zparseopts -D -E -a opts 'r' 'm' 'P' local in_str="$@" local url_str=""