Workplaces
Tool for make context based aliases of your commands.
How to use
- Make simple aliases for the commands you use and bind them to the context.
- Set context to your working directories.
- Use aliases to run your directory relative tasks.
Installation
Add this line to your application's Gemfile:
gem 'workplaces'
And then execute:
$ bundle
Or install it yourself as:
$ gem install workplaces
Usage
Workplaces commands:
workplace alias [NAME] (-d | -c CONTEXT -e EXPRESSION) # Create alias (NAME) for an expression (EXECUTE) in the CONTEXT.
workplace aliases [CONTEXT] # Show list of aliases for the CONTEXT.
workplace context [*LIST] # Add LIST to a context for a current directory.
workplace exclude CONTEXT -f, --from=FROM # Exclude CONTEXT from the ANOTHER
workplace execute ALIAS # Find alias in the current context and execute command
workplace help [COMMAND] # Describe available commands or one specific command
workplace include CONTEXT -t, --to=TO # Include CONTEXT to the target
workplace included [CONTEXT] # Show contexts included to specified CONTEXT
Contributing
- Fork it ( http://github.com//workplaces/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request