Permalink
Browse files

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.
  • Loading branch information...
1 parent 1aedbd6 commit ffa45b03914c261d8b95f29d581c9fcfa6e5282e @tswicegood tswicegood committed May 3, 2011
Showing with 21 additions and 1 deletion.
  1. +1 −1 bash_it.sh
  2. 0 plugins/{ → available}/base.plugin.bash
  3. 0 plugins/{ → available}/battery.plugin.bash
  4. 0 plugins/{ → available}/browser.plugin.bash
  5. 0 plugins/{ → available}/dirs.plugins.bash
  6. 0 plugins/{ → available}/git.plugins.bash
  7. 0 plugins/{ → available}/hg.plugins.bash
  8. 0 plugins/{ → available}/javascript.plugins.bash
  9. 0 plugins/{ → available}/jekyll.plugins.bash
  10. 0 plugins/{ → available}/latex.plugin.bash
  11. 0 plugins/{ → available}/nginx.plugins.bash
  12. 0 plugins/{ → available}/osx.plugin.bash
  13. 0 plugins/{ → available}/python.plugin.bash
  14. 0 plugins/{ → available}/ruby.plugin.bash
  15. 0 plugins/{ → available}/rvm.plugin.bash
  16. 0 plugins/{ → available}/ssh.plugins.bash
  17. 0 plugins/{ → available}/subversion.plugin.bash
  18. 0 plugins/{ → available}/tmux.plugin.bash
  19. 0 plugins/{ → available}/vagrant.plugins.bash
  20. 0 plugins/{ → available}/virtualenv.plugin.bash
  21. 0 plugins/{ → available}/z.bash
  22. +1 −0 plugins/enabled/base.plugin.bash
  23. +1 −0 plugins/enabled/battery.plugin.bash
  24. +1 −0 plugins/enabled/browser.plugin.bash
  25. +1 −0 plugins/enabled/dirs.plugins.bash
  26. +1 −0 plugins/enabled/git.plugins.bash
  27. +1 −0 plugins/enabled/hg.plugins.bash
  28. +1 −0 plugins/enabled/javascript.plugins.bash
  29. +1 −0 plugins/enabled/jekyll.plugins.bash
  30. +1 −0 plugins/enabled/latex.plugin.bash
  31. +1 −0 plugins/enabled/nginx.plugins.bash
  32. +1 −0 plugins/enabled/osx.plugin.bash
  33. +1 −0 plugins/enabled/python.plugin.bash
  34. +1 −0 plugins/enabled/ruby.plugin.bash
  35. +1 −0 plugins/enabled/rvm.plugin.bash
  36. +1 −0 plugins/enabled/ssh.plugins.bash
  37. +1 −0 plugins/enabled/subversion.plugin.bash
  38. +1 −0 plugins/enabled/tmux.plugin.bash
  39. +1 −0 plugins/enabled/vagrant.plugins.bash
  40. +1 −0 plugins/enabled/virtualenv.plugin.bash
  41. +1 −0 plugins/enabled/z.bash
View
@@ -25,7 +25,7 @@ do
done
# Plugins
-PLUGINS="${BASH}/plugins/*.bash"
+PLUGINS="${BASH}/plugins/enabled/*.bash"
for config_file in $PLUGINS
do
source $config_file
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View

0 comments on commit ffa45b0

Please sign in to comment.