Skip to content

Commit

Permalink
fix prezto option parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
m42e committed Sep 18, 2015
1 parent 415fc8f commit 5146374
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zgen.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ zgen-clone() {
shift
local option=${1}
shift
local params=$@
local params
params=${@}
if [[ ${module} =~ "^:" ]]; then
module=${module[1,]}
fi
Expand All @@ -160,7 +161,7 @@ zgen-clone() {
if [[ ! $module =~ "^(prezto):" ]]; then
module="prezto:$module"
fi
local cmd="zstyle ':${module}' $option ${(qq)params}"
local cmd="zstyle ':${module}' $option ${params}"

# execute in place
eval $cmd
Expand Down Expand Up @@ -421,7 +422,7 @@ zgen-prezto() {
# this is a prezto option
else
shift
-zgen-prezto-option ${file} ${(q)@}
-zgen-prezto-option ${file} ${(qq)@}
fi

}
Expand Down

0 comments on commit 5146374

Please sign in to comment.