Commit Graph

14 Commits

Author SHA1 Message Date
Dave Paroulek
75dbdaf274 Create plugins/enabled directory if it doesn't already exist
- This fixes a bug I saw after installing bash-it on Mac OS X 10.6.8.
  During bash-it installation I chose not to install any plugins. After
  install, when `bash-it enable plugin foo` was complaining that the
  enabled directory did not exist.
2013-03-25 08:36:27 -04:00
Nils Winkler
be20972cf0 Merged @erichs changes for the bash-it function. 2012-05-23 09:45:36 +02:00
Nils Winkler
e82991beb8 Updated help 2012-05-23 09:31:56 +02:00
Erich Smith
961c914e0f alias-help() 2012-05-22 10:08:38 +02:00
Nils Winkler
95ce548451 Cleaned up parameters and added meta data for plumbing functions. 2012-05-22 09:33:59 +02:00
Nils Winkler
f71be20247 Changed meta info resolution to look for data based on the type, e.g. about-plugin, about-alias, about-completion. 2012-05-21 15:52:03 +02:00
Nils Winkler
1f558e2550 Extended enable/disable and describe functionality to work for aliases and completions as well. 2012-05-21 13:24:49 +02:00
Erich Smith
bffae2a1e1 fix for issue #136
issue #136 was found to be caused by an aliased 'ls' command that
generated rogue values for 'plugin' in the enable/disable-plugin()
functions. this commit fixes that by forcing the shell to disregard
aliased 'ls' commands.
2012-05-20 13:18:04 -04:00
Erich Smith
758c4f3328 test existence, not symlink
it isn't safe to assume that symlinks created in the enabled/* dirs will
be symlinks later...

some users use tools like Dropbox to sync their files across systems,
and these may transform symlinks into regular files.  explicitly
checking for symlinks with tests like [ -h $file ] will break on these
systems.  these tests have been replaced with [ -e $file ] instead.
2012-05-16 13:00:22 -04:00
Erich Smith
a825c5f16f plugins-help is much faster
this replaces the naive implementation that called glossary() on each
group, and is an order of magnitude faster.

fix grouping in javascript.plugin.bash
2012-05-15 14:29:06 -04:00
Erich Smith
70e1cd36be fix typos 2012-05-14 14:12:09 -04:00
Erich Smith
08e439c4f0 update plugin management 2012-05-13 22:13:54 -04:00
Erich Smith
254d4459e2 basic plugin management
move plugin management functions into 'lib' group in helpers.bash
2012-05-13 22:13:54 -04:00
Travis Swicegood
b524bb6047 Extract loading of enable-able files and add reload_* functions 2012-03-26 11:19:38 -05:00