#!/bin/bash

#   -------------------------------
#   Commands
#   -------------------------------

    # Quick Commands
    # -------------------------------------------------------------------
    start-workday() {
        source $HOME/.bash_profile;
        printHeader "Update brew formula";
        brew upgrade; brew cleanup; brew doctor;
        printHeader "Update npm packages";
        npm update -g;
    }

    # ExpWeb Commands
    # -------------------------------------------------------------------
    alias cd-expweb="command cd $TRUNK"
    alias gw="./gradlew"
    alias expweb-clean="sudo rm -rf $TRUNK/build"
    alias expweb-build="cd-expweb; expweb-clean; gw clean build"
    alias expweb-build-fast="cd-expweb; expweb-clean; gw clean build -xCheck -x minifyResources -Pdebug"
    alias expweb-start="cd-expweb; expweb-clean; gw -Pdebug startExpweb"
    alias expweb-start-stub="cd-expweb; expweb-clean; gw -Pdebug -Pstub startExpweb"
    alias expweb-latest-version="cd-expweb; p4 counters -e expweb_trunk-ci_last_green_cl | ggrep -oP '(\d)+'"
    expweb-sync-latest() {
    eval "cd-expweb";
    p4 sync ${TRUNK}/...@$(expweb-latest-version);
    }


    # Docker Commands
    # -------------------------------------------------------------------
    alias docker-start-vm="docker-machine create --driver=virtualbox default"
    #docker-start-terminal() {
    #  eval "$(docker-machine env default)";
    #}

#!/bin/bash

#   -------------------------------
#   Commands
#   -------------------------------

    # Quick Commands
    # -------------------------------------------------------------------
    start-workday() {
        source $HOME/.bash_profile;

        # Update vault - This command is on my local computer to hide the endpoint
        # Requires SEA password
        printHeader "Update Vault token";
        vault_update;

        printHeader "Update brew formula";
        brew upgrade; brew cleanup; brew doctor;
        printHeader "Update npm packages";
        npm update -g;
    }

    # ExpWeb Commands
    # -------------------------------------------------------------------
    alias cd-expweb="command cd $TRUNK"
    alias gw="./gradlew"
    alias expweb-clean="sudo rm -rf $TRUNK/build"
    alias expweb-build="cd-expweb; expweb-clean; gw clean build"
    alias expweb-build-fast="cd-expweb; expweb-clean; gw clean build -xCheck -x minifyResources -Pdebug"
    alias expweb-start="cd-expweb; expweb-clean; gw -Pdebug startExpweb"
    alias expweb-start-stub="cd-expweb; expweb-clean; gw -Pdebug -Pstub startExpweb"
    alias expweb-latest-version="cd-expweb; p4 counters -e expweb_trunk-ci_last_green_cl | ggrep -oP '(\d)+'"
    expweb-sync-latest() {
    eval "cd-expweb";
    p4 sync ${TRUNK}/...@$(expweb-latest-version);
    }


    # Docker Commands
    # -------------------------------------------------------------------
    alias docker-start-vm="docker-machine create --driver=virtualbox default"
    #docker-start-terminal() {
    #  eval "$(docker-machine env default)";
    #}

Add vault update to start workday
Add vault update to start workday
