Skip to content

Instantly share code, notes, and snippets.

@jpalala
Forked from TheGU/setup_mac.sh
Created July 26, 2023 05:07
Show Gist options
  • Save jpalala/790870eb79e8051ccaa8372e233eb923 to your computer and use it in GitHub Desktop.
Save jpalala/790870eb79e8051ccaa8372e233eb923 to your computer and use it in GitHub Desktop.

Revisions

  1. @TheGU TheGU revised this gist Aug 10, 2017. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions setup_mac.sh
    Original file line number Diff line number Diff line change
    @@ -6,15 +6,14 @@

    # Git
    brew install git
    git config --global core.autocrlf input

    # mas-cli : A simple command line interface for the Mac App Store. Designed for scripting and automation.
    # https://github.com/mas-cli/mas
    brew install mas

    # Zsh and prezto
    brew install zsh
    # install dos2unix to convert dos file
    brew install dos2unix
    # zprezto : https://github.com/sorin-ionescu/prezto
    git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zlogin" ~/.zlogin
    @@ -23,8 +22,6 @@ cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zpreztorc" ~/.zpreztorc
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zprofile" ~/.zprofile
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zshenv" ~/.zshenv
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zshrc" ~/.zshrc
    dos2unix .z*
    dos2unix "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
    chsh -s /bin/zsh

    # iterm2 : iTerm2 brings the terminal into the modern age with features you never knew you always wanted.
    @@ -38,3 +35,4 @@ brew cask install visual-studio-code
    brew cask install transmission
    brew cask install vlc
    mas install 539883307 #LINE
    brew install dos2unix
  2. @TheGU TheGU revised this gist Aug 10, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions setup_mac.sh
    Original file line number Diff line number Diff line change
    @@ -24,6 +24,7 @@ cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zprofile" ~/.zprofile
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zshenv" ~/.zshenv
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zshrc" ~/.zshrc
    dos2unix .z*
    dos2unix "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
    chsh -s /bin/zsh

    # iterm2 : iTerm2 brings the terminal into the modern age with features you never knew you always wanted.
  3. @TheGU TheGU revised this gist Aug 10, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions setup_mac.sh
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,8 @@ brew install mas

    # Zsh and prezto
    brew install zsh
    # install dos2unix to convert dos file
    brew install dos2unix
    # zprezto : https://github.com/sorin-ionescu/prezto
    git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zlogin" ~/.zlogin
    @@ -21,6 +23,7 @@ cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zpreztorc" ~/.zpreztorc
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zprofile" ~/.zprofile
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zshenv" ~/.zshenv
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zshrc" ~/.zshrc
    dos2unix .z*
    chsh -s /bin/zsh

    # iterm2 : iTerm2 brings the terminal into the modern age with features you never knew you always wanted.
  4. @TheGU TheGU created this gist Aug 10, 2017.
    36 changes: 36 additions & 0 deletions setup_mac.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    #!/bin/bash

    # Brew : The missing package manager for macOS
    # https://brew.sh/
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    # Git
    brew install git

    # mas-cli : A simple command line interface for the Mac App Store. Designed for scripting and automation.
    # https://github.com/mas-cli/mas
    brew install mas

    # Zsh and prezto
    brew install zsh
    # zprezto : https://github.com/sorin-ionescu/prezto
    git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zlogin" ~/.zlogin
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zlogout" ~/.zlogout
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zpreztorc" ~/.zpreztorc
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zprofile" ~/.zprofile
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zshenv" ~/.zshenv
    cp "${ZDOTDIR:-$HOME}/.zprezto/runcoms/zshrc" ~/.zshrc
    chsh -s /bin/zsh

    # iterm2 : iTerm2 brings the terminal into the modern age with features you never knew you always wanted.
    # https://www.iterm2.com/
    brew cask install iterm2

    # Default Tool
    brew cask install teamviewer
    brew cask install google-chrome
    brew cask install visual-studio-code
    brew cask install transmission
    brew cask install vlc
    mas install 539883307 #LINE