Skip to content

rstacruz/shellbundler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Shell script manager.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages