Browse Source

Escape semicolns from commands

pull/2/head
Luke Childs 8 years ago
parent
commit
ab7b03f37d
  1. 2
      npm-run-completion.zsh

2
npm-run-completion.zsh

@ -8,7 +8,7 @@ _npm_run_completion() {
fi
done
if [ ! "$dir" = "" ]; then
local options=("${(@f)$(node -e "var pkg = require('$dir/$filename'); pkg.scripts && Object.keys(pkg.scripts).forEach(function(script) { console.log(script+':'+pkg.scripts[script]) })")}")
local options=("${(@f)$(node -e "var pkg = require('$dir/$filename'); pkg.scripts && Object.keys(pkg.scripts).forEach(function(script) { console.log(script.replace(':', '\\\:')+':'+pkg.scripts[script]) })")}")
_describe 'values' options
fi
}

Loading…
Cancel
Save