Skip to content

Instantly share code, notes, and snippets.

@dzuluaga
Last active April 29, 2024 16:55
Show Gist options
  • Select an option

  • Save dzuluaga/3bf775217728debf360a4377c7eb5118 to your computer and use it in GitHub Desktop.

Select an option

Save dzuluaga/3bf775217728debf360a4377c7eb5118 to your computer and use it in GitHub Desktop.

Revisions

  1. Diego Zuluaga revised this gist Mar 28, 2019. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,10 @@
    # Run this script directly from the command line
    #
    # $ curl "https://gist.githubusercontent.com/dzuluaga/3bf775217728debf360a4377c7eb5118/raw/install-oh-my-zsh-gcp-cloud-shell.sh?$(date +%s)" | sudo bash
    #
    # you can also append an alias to ~/.bashrc to install-zsh at anytime
    #
    # alias install-zsh="curl \"https://gist.githubusercontent.com/dzuluaga/3bf775217728debf360a4377c7eb5118/raw/install-oh-my-zsh-gcp-cloud-shell.sh?$(date +%s)\" | sudo bash"

    echo 'Installing zsh...'
    sudo apt-get -yq install zsh
  2. Diego Zuluaga revised this gist Mar 26, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    #
    # $ curl "https://gist.githubusercontent.com/dzuluaga/3bf775217728debf360a4377c7eb5118/raw/install-oh-my-zsh-gcp-cloud-shell.sh?$(date +%s)" | sudo bash

    echo 'Installin zsh...'
    echo 'Installing zsh...'
    sudo apt-get -yq install zsh

    echo 'Downloading and installing oh-my-zsh'
  3. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,6 @@ echo "Remember to start zsh by running everytime you start Cloud Shell $ zsh"
    echo
    echo "Remember to edit vim ~/.zshrc with this line to enable some useful plugins"
    echo
    echo "plugins=(vi-mode git git-flow textmate cap brew gem github osx vagrant jsontools history-substring-search)"
    echo "plugins=(vi-mode git git-flow textmate brew gem github osx vagrant jsontools history-substring-search)"
    echo
    echo
  4. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,6 @@ echo "Remember to start zsh by running everytime you start Cloud Shell $ zsh"
    echo
    echo "Remember to edit vim ~/.zshrc with this line to enable some useful plugins"
    echo
    echo "plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)"
    echo "plugins=(vi-mode git git-flow textmate cap brew gem github osx vagrant jsontools history-substring-search)"
    echo
    echo
  5. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ echo 'Installin zsh...'
    sudo apt-get -yq install zsh

    echo 'Downloading and installing oh-my-zsh'
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

    echo
    echo "Next Steps"
  6. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ echo 'Installin zsh...'
    sudo apt-get -yq install zsh

    echo 'Downloading and installing oh-my-zsh'
    sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

    echo
    echo "Next Steps"
  7. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 3 additions and 9 deletions.
    12 changes: 3 additions & 9 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -5,12 +5,6 @@
    #
    # $ curl "https://gist.githubusercontent.com/dzuluaga/3bf775217728debf360a4377c7eb5118/raw/install-oh-my-zsh-gcp-cloud-shell.sh?$(date +%s)" | sudo bash

    # .---------- constant part!
    # vvvv vvvv-- the code from above
    RED='\033[0;31m'
    GREEN='\033[0;32m'
    NC='\033[0m' # No Color

    echo 'Installin zsh...'
    sudo apt-get -yq install zsh

    @@ -20,10 +14,10 @@ sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs
    echo
    echo "Next Steps"
    echo
    echo "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo "Remember to start zsh by running everytime you start Cloud Shell $ zsh"
    echo
    echo "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    echo "Remember to edit vim ~/.zshrc with this line to enable some useful plugins"
    echo
    echo "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo "plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)"
    echo
    echo
  8. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -20,10 +20,10 @@ sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs
    echo
    echo "Next Steps"
    echo
    printf "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo
    printf "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    echo "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    echo
    printf "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo
    echo
  9. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -20,10 +20,10 @@ sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs
    echo
    echo "Next Steps"
    echo
    printf -e "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    printf "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo
    printf -e "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    printf "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    echo
    printf -e "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    printf "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo
    echo
  10. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -20,10 +20,10 @@ sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs
    echo
    echo "Next Steps"
    echo
    echo -e "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    printf -e "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo
    echo -e "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    printf -e "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    echo
    echo -e "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    printf -e "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo
    echo
  11. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -7,9 +7,9 @@

    # .---------- constant part!
    # vvvv vvvv-- the code from above
    # RED='\033[0;31m'
    # GREEN='\033[0;32m'
    # NC='\033[0m' # No Color
    RED='\033[0;31m'
    GREEN='\033[0;32m'
    NC='\033[0m' # No Color

    echo 'Installin zsh...'
    sudo apt-get -yq install zsh
    @@ -20,10 +20,10 @@ sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs
    echo
    echo "Next Steps"
    echo
    echo "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo -e "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo
    echo "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    echo -e "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    echo
    echo "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo -e "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo
    echo
  12. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -7,9 +7,9 @@

    # .---------- constant part!
    # vvvv vvvv-- the code from above
    RED='\033[0;31m'
    GREEN='\033[0;32m'
    NC='\033[0m' # No Color
    # RED='\033[0;31m'
    # GREEN='\033[0;32m'
    # NC='\033[0m' # No Color

    echo 'Installin zsh...'
    sudo apt-get -yq install zsh
    @@ -20,10 +20,10 @@ sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs
    echo
    echo "Next Steps"
    echo
    echo -e "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo
    echo -e "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    echo "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    echo
    echo -e "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo
    echo
  13. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -20,10 +20,10 @@ sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs
    echo
    echo "Next Steps"
    echo
    printf "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo -e "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo
    printf "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    echo -e "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    echo
    printf "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo -e "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo
    echo
  14. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@ echo "Next Steps"
    echo
    printf "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo
    printf "Remember to edit ${GREEN}~/.zshrc${NC} with this line to enable some useful plugins"
    printf "Remember to edit ${GREEN}vim ~/.zshrc${NC} with this line to enable some useful plugins"
    echo
    printf "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo
  15. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs
    echo
    echo "Next Steps"
    echo
    printf "Remember to start zsh by running everytime you start Cloud Shell ${RED}$ zsh${NC}"
    printf "Remember to start zsh by running everytime you start Cloud Shell ${GREEN}$ zsh${NC}"
    echo
    printf "Remember to edit ${GREEN}~/.zshrc${NC} with this line to enable some useful plugins"
    echo
  16. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -8,8 +8,8 @@
    # .---------- constant part!
    # vvvv vvvv-- the code from above
    RED='\033[0;31m'
    GREEN='\033[0;32m'
    NC='\033[0m' # No Color
    printf "I ${RED}love${NC} Stack Overflow\n"

    echo 'Installin zsh...'
    sudo apt-get -yq install zsh
    @@ -22,7 +22,8 @@ echo "Next Steps"
    echo
    printf "Remember to start zsh by running everytime you start Cloud Shell ${RED}$ zsh${NC}"
    echo
    printf "Remember to edit ${RED}~/.zshrc${NC} with this line to enable some useful plugins"
    printf "Remember to edit ${GREEN}~/.zshrc${NC} with this line to enable some useful plugins"
    echo
    printf "${GREEN}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)${NC}"
    echo
    printf "${RED}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search){NC}"
    echo
  17. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -20,9 +20,9 @@ sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs
    echo
    echo "Next Steps"
    echo
    echo -e "Remember to start zsh by running everytime you start Cloud Shell ${RED}$ zsh${NC}"
    printf "Remember to start zsh by running everytime you start Cloud Shell ${RED}$ zsh${NC}"
    echo
    echo -e "Remember to edit ${RED}~/.zshrc${NC} with this line to enable some useful plugins"
    printf "Remember to edit ${RED}~/.zshrc${NC} with this line to enable some useful plugins"
    echo
    echo -e "${RED}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search){NC}"
    printf "${RED}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search){NC}"
    echo
  18. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -20,9 +20,9 @@ sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs
    echo
    echo "Next Steps"
    echo
    echo -e 'Remember to start zsh by running everytime you start Cloud Shell ${RED}$ zsh${NC}'
    echo -e "Remember to start zsh by running everytime you start Cloud Shell ${RED}$ zsh${NC}"
    echo
    echo -e 'Remember to edit ${RED}~/.zshrc${NC} with this line to enable some useful plugins'
    echo -e "Remember to edit ${RED}~/.zshrc${NC} with this line to enable some useful plugins"
    echo
    echo -e '${RED}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search){NC}'
    echo -e "${RED}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search){NC}"
    echo
  19. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,9 @@ sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs
    echo
    echo "Next Steps"
    echo
    echo 'Remember to start zsh by running everytime you start Cloud Shell $ zsh'
    echo -e 'Remember to start zsh by running everytime you start Cloud Shell ${RED}$ zsh${NC}'
    echo
    echo 'Remember to edit ~/.zshrc with this line to enable some useful plugins'
    echo 'plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)'
    echo -e 'Remember to edit ${RED}~/.zshrc${NC} with this line to enable some useful plugins'
    echo
    echo -e '${RED}plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search){NC}'
    echo
  20. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zs
    echo
    echo "Next Steps"
    echo
    echo 'Remember to start zsh by running everytime you start Cloud Shell $ zsh\n'
    echo 'Remember to start zsh by running everytime you start Cloud Shell $ zsh'
    echo
    echo 'Remember to edit ~/.zshrc with this line to enable some useful plugins\n'
    echo 'Remember to edit ~/.zshrc with this line to enable some useful plugins'
    echo 'plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)'
  21. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,10 @@ sudo apt-get -yq install zsh
    echo 'Downloading and installing oh-my-zsh'
    sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

    echo "Next Steps\n"
    echo
    echo "Next Steps"
    echo
    echo 'Remember to start zsh by running everytime you start Cloud Shell $ zsh\n'
    echo
    echo 'Remember to edit ~/.zshrc with this line to enable some useful plugins\n'
    echo 'plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)'
  22. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ sudo apt-get -yq install zsh
    echo 'Downloading and installing oh-my-zsh'
    sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

    echo 'Remember to start zsh by running everytime you start Cloud Shell $ zsh'

    echo 'Remember to edit ~/.zshrc with this line to enable some useful plugins'
    echo "Next Steps\n"
    echo 'Remember to start zsh by running everytime you start Cloud Shell $ zsh\n'
    echo 'Remember to edit ~/.zshrc with this line to enable some useful plugins\n'
    echo 'plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)'
  23. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,12 @@
    #
    # $ curl "https://gist.githubusercontent.com/dzuluaga/3bf775217728debf360a4377c7eb5118/raw/install-oh-my-zsh-gcp-cloud-shell.sh?$(date +%s)" | sudo bash

    # .---------- constant part!
    # vvvv vvvv-- the code from above
    RED='\033[0;31m'
    NC='\033[0m' # No Color
    printf "I ${RED}love${NC} Stack Overflow\n"

    echo 'Installin zsh...'
    sudo apt-get -yq install zsh

  24. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -10,3 +10,8 @@ sudo apt-get -yq install zsh

    echo 'Downloading and installing oh-my-zsh'
    sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

    echo 'Remember to start zsh by running everytime you start Cloud Shell $ zsh'

    echo 'Remember to edit ~/.zshrc with this line to enable some useful plugins'
    echo 'plugins=(vi-mode git git-flow rails textmate ruby cap brew gem github mysql osx vagrant jsontools zsh-syntax-highlighting history-substring-search)'
  25. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -5,5 +5,8 @@
    #
    # $ curl "https://gist.githubusercontent.com/dzuluaga/3bf775217728debf360a4377c7eb5118/raw/install-oh-my-zsh-gcp-cloud-shell.sh?$(date +%s)" | sudo bash

    echo 'Installin zsh...'
    sudo apt-get -yq install zsh

    echo 'Downloading and installing oh-my-zsh'
    sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  26. Diego Zuluaga revised this gist Mar 25, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    # Installs oh-my-zsh on GCP Cloud Shell in a single command.
    # Run this script directly from the command line
    #
    # $ curl "https://gist.githubusercontent.com/dzuluaga/b3b18a98c2ba9c326c3e6680301b26b8/raw/install-ngrok-gcp-cloud-shell.sh?$(date +%s)" | sudo bash
    # $ curl "https://gist.githubusercontent.com/dzuluaga/3bf775217728debf360a4377c7eb5118/raw/install-oh-my-zsh-gcp-cloud-shell.sh?$(date +%s)" | sudo bash

    sudo apt-get -yq install zsh
    sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  27. Diego Zuluaga created this gist Mar 25, 2019.
    9 changes: 9 additions & 0 deletions install-oh-my-zsh-gcp-cloud-shell.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/usr/bin/env bash

    # Installs oh-my-zsh on GCP Cloud Shell in a single command.
    # Run this script directly from the command line
    #
    # $ curl "https://gist.githubusercontent.com/dzuluaga/b3b18a98c2ba9c326c3e6680301b26b8/raw/install-ngrok-gcp-cloud-shell.sh?$(date +%s)" | sudo bash

    sudo apt-get -yq install zsh
    sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"