Skip to content

Instantly share code, notes, and snippets.

@npassaro
Forked from danmartens/foreman.plugin.zsh
Last active March 10, 2016 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save npassaro/39a7e509bfee05dd93c1 to your computer and use it in GitHub Desktop.
Save npassaro/39a7e509bfee05dd93c1 to your computer and use it in GitHub Desktop.
Foreman ZSH Plugin
### Foreman alias
alias befstart="bundle exec foreman start"
alias befrun="bundle exec foreman run"
### docker machine
function dmdefault() {
if [[ "$@" = "" ]]
then
echo "default"
else
echo $@
fi
}
function dmstart() {
args=$(dmdefault $@)
docker-machine start $args
}
function dmstop() {
args=$(dmdefault $@)
docker-machine stop $args
}
function dmenv() {
args=$(dmdefault $@)
docker-machine env $args
}
fi
foreman start -f $procfile;
}
befs() {
bundle exec fs;
}
befr() {
bundle exec foreman;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment