standardize plugins, update metadata

add about-plugin metadata
chmod -x plugins
cleanup filenames to standardize on x.plugin.bash format
only plugin files intended to be executable from the command line should
contain a shebang line, and should be a+x.
This commit is contained in:
Erich Smith
2012-05-11 23:27:03 -04:00
parent 254d4459e2
commit 55e77deac1
27 changed files with 214 additions and 53 deletions

View File

@@ -1,19 +1,30 @@
#!/usr/bin/env bash
# make sure virtualenvwrapper is enabled if available
cite about-plugin
about-plugin 'virtualenvwrapper helper functions'
[[ `which virtualenvwrapper.sh` ]] && . virtualenvwrapper.sh
# create a new virtualenv for this directory
function mkvenv {
about 'create a new virtualenv for this directory'
group virtualenv
cwd=`basename \`pwd\``
mkvirtualenv --no-site-packages --distribute $cwd
}
# create a new virtualenv for the branch you're currently in
function mkvbranch {
about 'create a new virtualenv for the current branch'
group virtualenv
mkvirtualenv --no-site-packages --distribute "$(basename `pwd`)@$(git_prompt_info)"
}
function wovbranch {
about 'sets workon branch'
group virtualenv
workon "$(basename `pwd`)@$(git_prompt_info)"
}