Code Monkey home page Code Monkey logo

Comments (7)

MordechaiHadad avatar MordechaiHadad commented on June 12, 2024

I have no idea what's update-alternatives

from bob.

rsb177 avatar rsb177 commented on June 12, 2024

basically, a way to manage things like which editor I want to use when I type vi.
Man Page
Overview

from bob.

MordechaiHadad avatar MordechaiHadad commented on June 12, 2024

I see, can you show me how you set it up?
Bob uses a proxy executable, if you rename bob to nvim it will execute neovim rather than bob.

from bob.

rsb177 avatar rsb177 commented on June 12, 2024

I just ran sudo update-alternatives --install /usr/bin/vi vi /home/rsb177/.local/share/bob/nvim-bin/nvim 100. It looks like since it's a proxy executable, if I set up a symbolic link to it (as any name other than nvim), it'll always run bob. Was able to replicate this by just using simple symbolic links. So it looks like I'll need to stick with just using aliases if I want to use nvim for commands like vi, view, etc.

from bob.

MordechaiHadad avatar MordechaiHadad commented on June 12, 2024

@rsb177 what name does the update-alternatives gives the executable?

from bob.

rsb177 avatar rsb177 commented on June 12, 2024

in the case of the command above, it shows up as vi

from bob.

MordechaiHadad avatar MordechaiHadad commented on June 12, 2024

oh, I guess you will have to alias it as you suggested :(
due to bob using proxy to execute nvim.

from bob.

Related Issues (20)

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.