Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
npm completion
- X-seq: zsh-workers 30842
- From: Bao Pham <bpm.spm@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: npm completion
- Date: Thu, 6 Dec 2012 02:20:06 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version:x-mailer; bh=+EPNkMWbv/LoqLQC0ePbllbKDfT8fPymbW55oE62xrI=; b=Z/YtGLBW/0sC6ISXJj/eLTeBAF+W+WGn50BXwjitmDGpL2L4lOLXG3N8sUaAeB08Iu 1t8EJhBX3tT5yh6GaVzwaDSMnMxj/L5mwf/LtXVQrvaDXPDYKqPpOGJx6oYqn8StZJEl PgQiUARtEoNhAaEVq55ZxYpXXTI9ER+8k9EwAMyYpijeDftBiuPYx35oWVtnd3pts5Yp KIU6eNZIHhhYeKbbQ87WjQeo7v1Ab8uBx5hXuaQuiMUHk0SJaXm3dsWPqPaoa0u8ERA9 wjM+lkVeCs5BTw6KW0TajM2pCbF/xSEsSe9KgFqpnPmhyuIafAgzrPdVniccFqiQ9wwD 3BNA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi zsh-workers,
Just a nudge for an updated npm completion script, since the current one only works for npm 0.3.15 and gives funny output for the new npm:
zsh > npm egrep: empty (sub)expression
\"\$\{COMP_WORDS\[@\]\}\" npm \"\$\{COMP_WORDS\[@\]\}\"
\"\$\{COMP_WORDS\[@\]\}\" \\
\"\$\{words\[@\]\}\" _npm_completion
\# _npm_completion\(\)
\#\#\#-begin-npm-completion-\#\#\# command
\#\#\#-end-npm-completion-\#\#\# compadd
\$\(COMP_CWORD=\$\(\(CURRENT-1\)\) compctl
\$\? compdef
\&\>/dev/null\; complete
\(\) completion
\(or cword
-- cword-=1
Cheers,
Bao
Messages sorted by:
Reverse Date,
Date,
Thread,
Author