Code Monkey home page Code Monkey logo

Comments (2)

HaleTom avatar HaleTom commented on August 30, 2024

Errors occur with the current version.

from aur-nvm.

tomwadley avatar tomwadley commented on August 30, 2024

The bash_completion file shipped with nvm is supposed to support zsh by loading bashcompinit: https://github.com/creationix/nvm/blob/217a5bb0de8290a229fdceba4671e3c219b68549/bash_completion#L83

I don't use zsh but I fired it up to test it and it seemed to work, at least with my empty .zshrc configuration.

Having said that, the bash_completion script should arguably be installed to /usr/share/bash-completion/completions/ so it would get sourced by bash automatically. I think I didn't put it there originally because nvm gets sourced by the user and so doesn't exist when bash_completion is first loaded. But it looks like bash_completion dynamically sources the completion files when needed so it still seems to work. My only concern is that by moving the completion script out of init-nvm.sh, zsh users whom this completion file does work for, will now need an extra step to enable completions.

from aur-nvm.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.