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.pull/48/head
parent
1aedbd6350
commit
ffa45b0391
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
../available/base.plugin.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/battery.plugin.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/browser.plugin.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/dirs.plugins.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/git.plugins.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/hg.plugins.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/javascript.plugins.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/jekyll.plugins.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/latex.plugin.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/nginx.plugins.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/osx.plugin.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/python.plugin.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/ruby.plugin.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/rvm.plugin.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/ssh.plugins.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/subversion.plugin.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/tmux.plugin.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/vagrant.plugins.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/virtualenv.plugin.bash
|
||||
|
|
@ -0,0 +1 @@
|
|||
../available/z.bash
|
||||
Loading…
Reference in New Issue