Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

npm completion



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