Bash Extension Manager.
bem installs shell scripts as commands by creating symlinks in ~/.bem/bin.
No aliases. No wrappers. No metadata database.
Run:
./bem initAdd the lines printed by bem init to your .bashrc file.
Reload Bash:
exec bashCheck:
bem versionInstall a script:
bem install ./script.shInstall with a custom name:
bem install -n mycmd ./script.shInstall multiple scripts:
bem install ./a.sh ./b.sh
bem install -n a ./a.sh -n b ./b.shList installed commands:
bem list
bem lsShow status:
bem status nameRemove a command:
bem remove name
bem rm nameThis removes only the symlink from ~/.bem/bin.
The original script is not deleted.
Uninstall bem:
bem uninstall-bemThen remove the PATH and completion lines from your .bashrc file.
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
~/.bem/
bem_completion
bin/
bem -> /path/to/bem
name -> /path/to/script
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.