GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - shellm-org/core: A shell library sourcing system.

BranchesTags
Open more actions menu

Latest commit

 

History

195 Commits
195 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
commands
commands
 
 
completion
completion
 
 
demo
demo
 
 
lib
lib
 
 
man
man
 
 
templates
templates
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.gitlab-ci.yml
.gitlab-ci.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
cookiecutterrc.yml
cookiecutterrc.yml
 
 
logo.png
logo.png
 
 
package.sh
package.sh
 
 

Repository files navigation

Be a Shell Master!

... or a Shell Magician? a Shell Mage? Anyway: it's a shell library sourcing system.

pipeline status gitter chat

shellm is a library sourcing / loading system.

It lets you define a LIBPATH variable. Just like PATH, LIBPATH is a semi-colon separated list of directories. You will then be able to source files from these directories with shellm source.

Demo

Installation

Installation is done with basher:

basher install gitlab.com/shellm/core

Usage

If you want to use shellm in your current shell or in a script, simply enter the following instruction or add it at the beginning of your script:

source $(shellm-core-path)

You now have access to the shellm source command which allows you to source a file located somewhere in your LIBPATH.

Typically, for a package installed with basher:

shellm source namespace/package
# or just a specific file:
# shellm source namespace/package/lib/main.sh

For files listed in a personal directory, something like

/path/to/my/lib/
├── bookmark.sh
├── cd.sh
└── env
    ├── aliases.sh
    ├── completion.sh
    └── goenv.sh

...and LIBPATH=/path/to/my/lib:$LIBPATH:

shellm source bookmark.sh
shellm source env/aliases.sh

About

A shell library sourcing system.

Topics

librariesscriptshellshellm

Resources

Readme
MPL-2.0 license
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.