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/shellbundler
In 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./bin
and./autoload
dirs just like above.
- Put your bundles in
- Put your bundles in
~/.bash/bundle/bundle_name_here
. - Type
sbundle reload
.
- 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.
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.