ShellBundler keeps your bash setup clean by letting you keep all your bash
packages in ~/.bash/bundle.
You need Bash (or regular sh), and Git.
Put shellbundler in:
$ mkdir -p ~/.bash/bundle/shellbundler
$ git clone git://github.com/rstacruz/shellbundler.git ~/.bash/bundle/shellbundlerIn your bash profile, load ShellBundler:
# Add this somewhere to the top of ~/.bash_profile
source ~/.bash/bundle/shellbundler/init.sh-
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.
- Put your .sh files to be loaded in
-
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.
- Put your bin files to be added to your path in
-
Bundles (!)
- Put your bundles in
~/.bash/bundle/bundle_name_here. They will all be loaded. A bundle has./binand./autoloaddirs just like above.
- Put your bundles in
- Put your bundles in
~/.bash/bundle/bundle_name_here. - Type
sbundle reload.
- VIM: Inspired by vim's
~/.vimand runtimepath config setup. - Pathogen by Tim Pope: The original runtimepath manager for Vim.
- Vundler by gmarik: The git-powered runtimepath manager.
ShellBundler will eventually have:
-
sbundle installwhich will install packages you specify in your bash profile. -
sbundle updatewhich will update your bundles to the latest version.