Create the concept of enabled plugins

This allows users to disable a plugin without completely removing it.
Instead, they simply remove the `plugins/enabled/*.bash` file for the
plugin they want to disable.  This continues the concept of "everything
on" while providing greater flexibility to future users.

It might be a good idea to allow turning these off by default in the
future and allowing not only the `plugins/enabled/*.bash` files but also
an array of `<plugin_name>` values that would search for
`plugins/available/<plugin_name>.plugin.bash` to enable them.  That
method would make it easier for people custom tune their plugins from
within their `.bash_profile` script.
41 files changed
tree: d86f868bb427c23d8cc6402388d6f23be169f253
  1. .gitignore
  2. README.md
  3. aliases/
  4. bash_it.sh
  5. completion/
  6. custom/
  7. lib/
  8. plugins/
  9. template/
  10. themes/
README.md

Bash it

'Bash it' is a mash up of my own bash commands and scripts, other bash stuff I have found and a shameless ripoff of oh-my-zsh. :)

Includes some autocompletion tools, theming support, aliases, custom functions, a few stolen pieces from Steve Losh, and more.

Install

Check a clone of this repo. You can view what a sample ~/.bash_profile looks like in template/bash_profile.template.bash. If you wanted to use that template, make sure to make a backup of your current ~/.bash_profile file.

git clone http://github.com/revans/bash-it.git bash_it

cp ~/.bash_profile ~/.bash_profile_original
cp <path/to/cloned/repo>/template/bash_profile.template.bash ~/.bash_profile

Help Screens

bash-it (will show all the help commands)
aliases-help
rails-help
git-help
plugins-help

Your Custom scripts, aliases, and functions

For custom scripts, and aliases, you can create the following files and they will be ignored by the git repo:

  • aliases/custom.aliases.bash
  • lib/custom.bash
  • plugins/custom.plugins.bash

and anything in the custom directory will be ignored with the exception of custom/example.bash.

Themes

There are a few bash-it themes, but I'm hoping the community will jump in and create their own custom prompts and share their creations with everyone else by submitting a pull request to me (revans).

Help out

I think all of us have our own custom scripts that we have added over time and so following in the footsteps of oh-my-zsh, bash-it was created as a framework for those who choose to use bash as their shell. As a community, I'm excited to see what everyone else has in their custom toolbox and am hoping that they'll share it with everyone by submitting a pull request to bash-it.

So, if you have contributions to bash-it, please send me a pull request and I'll take a look at it and commit it to the repo as long as it looks good. If you do change an existing command, please give an explanation as to why. That will help a lot when I merge your changes in. Thanks, and happing bashing!

Contributors