-
-
Save npassaro/39a7e509bfee05dd93c1 to your computer and use it in GitHub Desktop.
Foreman ZSH Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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