shellbundler

Shell script manager.

Stars
7
Committers
1

ShellBundler

Bash package manager

ShellBundler keeps your bash setup clean by letting you keep all your bash packages in ~/.bash/bundle.

Requirements

You need Bash (or regular sh), and Git.

Install it

Put shellbundler in:

$ mkdir -p ~/.bash/bundle/shellbundler
$ git clone git://github.com/rstacruz/shellbundler.git ~/.bash/bundle/shellbundler

In your bash profile, load ShellBundler:

# Add this somewhere to the top of ~/.bash_profile
source ~/.bash/bundle/shellbundler/init.sh

Use it

  • Autoloads

    • Put your .sh files to be loaded in ~/.bash/autoload.
    • Put your .sh files to be loaded on a Mac in ~/.bash/autoload/mac.
    • Put your .sh files to be loaded on a Linux env in ~/.bash/autoload/linux.
  • Bin files

    • Put your bin files to be added to your path in ~/.bash/bin.
    • Put your bin files to be added to your path on a Mac in ~/.bash/bin/mac.
    • Put your bin files to be added to your path on a Linux env in ~/.bash/bin/linux.
  • Bundles (!)

    • Put your bundles in ~/.bash/bundle/bundle_name_here. They will all be
      loaded. A bundle has ./bin and ./autoload dirs just like above.

Adding bundles

  • Put your bundles in ~/.bash/bundle/bundle_name_here.
  • Type sbundle reload.

Acknowledgements

  • VIM: Inspired by vim's ~/.vim and runtimepath config setup.
  • Pathogen by Tim Pope: The original runtimepath manager for Vim.
  • Vundler by gmarik: The git-powered runtimepath manager.

To do

ShellBundler will eventually have:

  • sbundle install which will install packages you specify in your bash profile.

  • sbundle update which will update your bundles to the latest version.