bundle exec rails server
foreman run python app.py db upgrade
butler run or
butler build or
Basically anything you do every day, let the Butler do it.
Butler is easiest installed via homebrew:
> brew install michaeldfallen/formula/butler
butler --init to create a sample butlerfile and get started.
###Bash and Zsh completion
To enable completion add the following to your
source "$(butler --init-completion)"
That will load the correct completion files for your shell.
Create a butlerfile to define your commands
[command]: [shell command to run]
then tell butler to do it
> butler [command] Executing [command]
The first time you ask butler to run a command it will confirm with you that the command is safe:
> butler [command] First time executing [command]: [shell command to run] Execute [command]? (y)es, (n)o, just this (o)nce
This way you can happily use other peoples butlerfile commands without worrying
about them sneaking an
rm -rf ~ in to the script.
###Setting the shell
By default butler will look at
$SHELL, which is set by most shells including
ZSH. This should mean that butler will automatically use your default shell to
$SHELL is not set it will fall back on Bash.
If you want to set a specific shell for butler to use just export
> echo 'BUTLER_SHELL="/bin/dash"' >> ~/.zshrc
###Longer scripts - coming soon
For longer scripts just drop them in a
project/ bin/ complexbuild ..
Butler will know what to do
> butler complexbuild Aye, sir...
Butler is licensed under the MIT license.
See LICENSE for the full license text.