GithubHelp home page GithubHelp logo

Comments (6)

ellisonleao avatar ellisonleao commented on June 16, 2024

I've been honestly struggling with this issue for quite some time. Unfortunately, I don't see a clear consensus on what should be the de facto path for local binary folders. I see:

  • /usr/local/bin as one of the most used (but this requires root access)
  • [$HOME/.local/bin] for modern distros (Debian based mostly) which you provided the XDG page
  • $HOME/bin - I just choose this one for now but I am always open for ideas. Let's wait for other opinions here and maybe check which folder people are really using right now

from glow.nvim.

mystilleef avatar mystilleef commented on June 16, 2024

I've been honestly struggling with this issue for quite some time. Unfortunately, I don't see a clear consensus on what should be the de facto path for local binary folders. I see:

  • /usr/local/bin as one of the most used (but this requires root access)
  • [$HOME/.local/bin] for modern distros (Debian based mostly) which you provided the XDG page
  • $HOME/bin - I just choose this one for now but I am always open for ideas. Let's wait for other opinions here and maybe check which folder people are really using right now

I don't know any major Linux distro that uses anything other than $HOME/.local/bin, or $HOME/.local/usr/bin, for local installation without admin privileges. All major distros follow the XDG spec which is backed by GNOME, KDE, RedHat, OpenSuse, and Debian based distros.

from glow.nvim.

academo avatar academo commented on June 16, 2024

$HOME/.local/usr/bin is standard and mentioned in the XDG specification https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Beyond that, you can also allow this to come in a configurable way:

  • allow to configure the existing glow binary path
  • allow to configure the path to use to download the glow binary if not existing
  • allow to configure to simply try to use glow from the existing $PATH (do not attempt to install)

from glow.nvim.

ellisonleao avatar ellisonleao commented on June 16, 2024

yeah, i am leaning towards having a default path (probably ~/.local/usr/bin or ~/.local/bin) and make that path configurable. Thanks for the feedback guys

from glow.nvim.

ellisonleao avatar ellisonleao commented on June 16, 2024

we now have g:glow_binary_path which can be used as the binary destination. It defaults to $HOME/.local/bin. :GlowInstall will use it to download and extract over there. If everything goes ok on your side can we close this one?

from glow.nvim.

mystilleef avatar mystilleef commented on June 16, 2024

we now have g:glow_binary_path which can be used as the binary destination. It defaults to $HOME/.local/bin. :GlowInstall will use it to download and extract over there. If everything goes ok on your side can we close this one?

It's fixed. I'll close. Great job!

from glow.nvim.

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.