tswicegood/bash-it — pull request #1 by erichs (2012-05-17 01:28:30+00:00)
Title: Alias metadata

Travis, thinking ahead here...

Expanding on what I've done with plugin metadata, the copy/paste approach to doing similar 'dynamic' metadata tricks with aliases, completions, and themes, would result in the following functions, all nearly identical:

bash-it-plugins
bash-it-aliases
bash-it-completions
bash-it-themes

enable-plugins
enable-aliases
enable-completions
enable-themes

disable-plugins
disable-aliases
disable-completions
disable-themes

plugins-help
aliases-help
completions-help
themes-help

That's alot of repetition, and not very DRY.

What do you think about having a top-level function, let's co-opt the existing 'bash-it()' function for this discussion... have 'bash-it()' take verb and noun parameters, with a grammar roughly like:

```bash
$ bash-it
show
enable
disable
help
aliases
completions
plugins
themes

```

Would this single-entry type of consolidation be a net help?