Skip to content

Instantly share code, notes, and snippets.

@ascdso2020
Forked from vfarcic/03-local-dev.sh
Created March 8, 2021 16:55
Show Gist options
  • Select an option

  • Save ascdso2020/3b044de56f31fae42cd14216b4b9df93 to your computer and use it in GitHub Desktop.

Select an option

Save ascdso2020/3b044de56f31fae42cd14216b4b9df93 to your computer and use it in GitHub Desktop.

Revisions

  1. @vfarcic vfarcic revised this gist Jun 12, 2020. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions 03-local-dev.sh
    Original file line number Diff line number Diff line change
    @@ -2,12 +2,16 @@
    # Installing The Windows Subsystem for Linux (WSL) #
    ####################################################

    # Only if Windows
    sudo apt-add-repository ppa:git-core/ppa

    # Only if Windows
    sudo apt update

    # Only if Windows
    sudo apt install curl git

    # Only if Windows
    exit

    ####################
  2. @vfarcic vfarcic created this gist Jun 7, 2020.
    96 changes: 96 additions & 0 deletions 03-local-dev.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,96 @@
    ####################################################
    # Installing The Windows Subsystem for Linux (WSL) #
    ####################################################

    sudo apt-add-repository ppa:git-core/ppa

    sudo apt update

    sudo apt install curl git

    exit

    ####################
    # Choosing A Shell #
    ####################

    # Only if using Ubuntu, Debian, or WSL
    sudo apt install \
    zsh powerline fonts-powerline

    # Only if using macOS
    brew install zsh

    sh -c "$(curl -fsSL \
    https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

    ######################
    # A Short Intermezzo #
    ######################

    # Only if using Ubuntu, Debian, or WSL
    sudo apt install xdg-utils

    # Only if using Ubuntu, Debian, or WSL
    alias open='xdg-open'

    # Only if using Ubuntu, Debian, or WSL
    open https://www.devopstoolkitseries.com

    # Only if using Ubuntu, Debian, or WSL
    echo "alias open='xdg-open'" \
    | tee -a $HOME/.zshrc

    ##################################
    # Choosing An IDE And A Terminal #
    ##################################

    open https://code.visualstudio.com/download

    #########################
    # Configuring Oh My ZSH #
    #########################

    ls -1 $HOME/.oh-my-zsh/plugins

    ls -1 $HOME/.oh-my-zsh/plugins \
    | grep kubectl

    ls -1 $HOME/.oh-my-zsh/custom/plugins

    git clone \
    https://github.com/zsh-users/zsh-autosuggestions \
    $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions

    vim $HOME/.zshrc

    # Replace `plugins=(git)` with the snippet in the comments (without the comments).

    # plugins=(
    # git
    # kubectl
    # minikube
    # zsh-autosuggestions
    # helm
    # )

    exit

    #########################################
    # Going For A Test Drive With Oh My Zsh #
    #########################################

    mkdir code

    cd code

    git clone https://github.com/vfarcic/devops-catalog-code.git

    cd devops-catalog-code

    git checkout -b something

    git checkout master

    kubectl --namespace kube-system \
    describe pod [...]