Coder Social home page Coder Social logo

sln's Introduction

sln

A symlink manager especially for linking binary programs to a single point. Similar to Debian's update-alternatives but simpler.

Usage

sln [FLAG] [OPTION] [ARG]...

Options:
  add GROUP LINK PATH      Create a link in GROUP with name LINK to path PATH
  del GROUP LINNK          Delete group GROUP's link of name LINK
  group GROUP              Create group with name GROUP
  list [GROUP]             List all groups or list links in GROUP if specified
  set GROUP LINK           Set the default link of GROUP to LINK
  ungroup GROUP            Remove GROUP entirely (and its links)
  unset GROUP              Unset the default link of GROUP

Flags:
  --path=PATH              Change the sln path from '/usr/local/bin' to PATH
  --dbdir=PATH             Change the sln database directory from '/usr/local/share/sln' to PATH

Example:
To create a new group titled "lua" with a link titled "lua53"
which links to the path of the "lua53" executable:
  $ sln group lua
  $ sln add lua lua53 $(which lua53)
  $ sln set lua lua53

To permanently change the database or binary installation locations, edit the script and change d_path for the database, and b_path for the binary installation path.

Installing

Simply run install -m755 sln /usr/local/bin/sln or to any other place in your $PATH. From there it is callable as sln.

sln's People

Contributors

raniconduh avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.