set -e

download_dotfiles() {
    GITHUB_REPOSITORY="se7entyse7en/dotfiles"
    DOTFILES_ORIGIN="git@github.com:$GITHUB_REPOSITORY.git"
    DOTFILES_TARBALL_URL="https://github.com/$GITHUB_REPOSITORY/tarball/master"

    # Download and extract dotfiles repo into a temporary directory
    tmp_file="/tmp/dotfiles.tar.gz"
    echo "Downloading $DOTFILES_TARBALL_URL into $tmp_file..."
    curl -LsSo "$tmp_file" "$DOTFILES_TARBALL_URL" &> /dev/null

    output_dir="/tmp/dotfiles"
    rm -rf "$output_dir" && mkdir "$output_dir"
    echo "Extracting $tmp_file into $output_dir..."
    tar -zxf "$tmp_file" --strip-components 1 -C "$output_dir"

    echo "Entering $output_dir..."
    cd "$output_dir"
}

download_dotfiles

./keys.sh
./tokens.sh
./xcode.sh
./brew.sh
./zsh.sh
./git.sh
./google-cloud-sdk.sh
./emacs.sh
./prompt.sh
./github.sh

echo "Opening Hyper and closing Terminal..."
hyper && ps aux | grep Terminal | grep -v grep | tr -s ' ' | cut -f2 -d ' ' | xargs kill -9

set -e

download_dotfiles() {
    GITHUB_REPOSITORY="se7entyse7en/dotfiles"
    DOTFILES_ORIGIN="git@github.com:$GITHUB_REPOSITORY.git"
    DOTFILES_TARBALL_URL="https://github.com/$GITHUB_REPOSITORY/tarball/master"

    # Download and extract dotfiles repo into a temporary directory
    tmp_file="/tmp/dotfiles.tar.gz"
    echo "Downloading $DOTFILES_TARBALL_URL into $tmp_file..."
    curl -LsSo "$tmp_file" "$DOTFILES_TARBALL_URL" &> /dev/null

    output_dir="/tmp/dotfiles"
    rm -rf "$output_dir" && mkdir "$output_dir"
    echo "Extracting $tmp_file into $output_dir..."
    tar -zxf "$tmp_file" --strip-components 1 -C "$output_dir"

    echo "Entering $output_dir..."
    cd "$output_dir"
}

download_dotfiles

./keys.sh
./tokens.sh
./xcode.sh
./brew.sh
./google-cloud-sdk.sh
./zsh.sh
./git.sh
./emacs.sh
./prompt.sh
./github.sh

echo "Opening Hyper and closing Terminal..."
hyper && ps aux | grep Terminal | grep -v grep | tr -s ' ' | cut -f2 -d ' ' | xargs kill -9

--- 
+++ 
@@ -25,9 +25,9 @@
 ./tokens.sh
 ./xcode.sh
 ./brew.sh
-./google-cloud-sdk.sh
 ./zsh.sh
 ./git.sh
+./google-cloud-sdk.sh
 ./emacs.sh
 ./prompt.sh
 ./github.sh
Install google cloud SDK after oh-my-zsh and git

Signed-off-by: Lou Marvin Caraig <5f33b97f6c357145640aa3022c2df12fd56c93cf@gmail.com>
