Last active
November 12, 2018 14:00
-
-
Save henriquecarv/c384206ff5ab80464c9c5b2f406c420a to your computer and use it in GitHub Desktop.
Bash script for homolog environment link update
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
#!/bin/bash | |
SUFFIX="next-io" | |
ECOHOUSE="$SUFFIX-ecohouse/" | |
INSTITUCIONAL="$SUFFIX-institucional/" | |
COMPONENTS="$SUFFIX-components/" | |
STORE="$SUFFIX-store/" | |
THEME="$SUFFIX-theme/" | |
GRAPHQL="$SUFFIX-graphql/" | |
STASH_NAME="WIP" | |
HOMOLOG="git stash save $STASH_NAME && git checkout development && git pull && vtex use homolog && vtex link" | |
## command to retrieve your stashed code | |
#git stash apply stash^{/WIP} | |
gnome-terminal --tab --title="ECOHOUSE" --command="bash -c 'cd $ECOHOUSE; $HOMOLOG'" | |
gnome-terminal --tab --title="INSTITUCIONAL" --command="bash -c 'cd $INSTITUCIONAL; $HOMOLOG'" | |
gnome-terminal --tab --title="COMPONENTS" --command="bash -c 'cd $COMPONENTS; $HOMOLOG'" | |
gnome-terminal --tab --title="STORE" --command="bash -c 'cd $STORE; $HOMOLOG'" | |
gnome-terminal --tab --title="THEME" --command="bash -c 'cd $THEME; $HOMOLOG'" | |
gnome-terminal --tab --title="GRAPHQL" --command="bash -c 'cd $GRAPHQL; $HOMOLOG'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment