Skip to content

Instantly share code, notes, and snippets.

@Ivanca

Ivanca/.zshrc

Created Nov 28, 2018
Embed
What would you like to do?
comand "make setup" to do make dev.clone && make dev.checkout && make dev.provision && make dev.up
# put it on .bashrc (or .zshrc for zsh)
# comand "make setup" to do make dev.clone && make dev.checkout && make dev.provision && make dev.up
# optional parameter for devstack git repo to clone
make() {
if [[ $@ =~ ^setup.* ]]; then
sh -ec '
if [ "$2" != "" ]; then
git clone $2
cd devstack
fi
make dev.clone &&
make dev.checkout &&
make dev.provision &&
make dev.up
'
else
make "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment