mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-12-01 04:52:06 +03:00
Parse words before the cursor once to offer flags, versions, and aliases in the positions that accept them. Distinguish install options before and after the version, and leave run and exec arguments to the shell. Match local names literally. Account for Readline splitting at `=` and quoting common prefixes. Give zsh the same candidates as raw strings so its line editor can match, quote, and close arguments in its own syntax. Check the offered flags against nvm help and cover argument boundaries, including the actual arguments submitted by zsh after Tab completion. Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org> Co-authored-by: Jordan Harband <ljharb@gmail.com>