Skip to content

P4o1o/bem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bem

Bash Extension Manager.

bem installs shell scripts as commands by creating symlinks in ~/.bem/bin.

No aliases. No wrappers. No metadata database.

Install

Run:

./bem init

Add the lines printed by bem init to your .bashrc file.

Reload Bash:

exec bash

Check:

bem version

Usage

Install a script:

bem install ./script.sh

Install with a custom name:

bem install -n mycmd ./script.sh

Install multiple scripts:

bem install ./a.sh ./b.sh
bem install -n a ./a.sh -n b ./b.sh

List installed commands:

bem list
bem ls

Show status:

bem status name

Remove a command:

bem remove name
bem rm name

This removes only the symlink from ~/.bem/bin. The original script is not deleted.

Uninstall bem:

bem uninstall-bem

Then remove the PATH and completion lines from your .bashrc file.

Commands

bem init
bem install [-n name] file ...
bem remove name ...
bem rm name ...
bem list
bem ls
bem status name ...
bem uninstall-bem
bem version
bem help

Files

~/.bem/
  bem_completion
  bin/
    bem -> /path/to/bem
    name -> /path/to/script

Names

Command names must match:

^[a-zA-Z0-9_][a-zA-Z0-9._-]*$

Maximum length: 64.

bem refuses to install a command if the name already exists.

About

Bash Extension Manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages