Skip to content

Instantly share code, notes, and snippets.

@jpsilvashy
Forked from ryanhanwu/Brewfile
Last active November 16, 2020 18:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpsilvashy/043eb889d7fe7a1987254a0133583e3a to your computer and use it in GitHub Desktop.
Save jpsilvashy/043eb889d7fe7a1987254a0133583e3a to your computer and use it in GitHub Desktop.
New Mac Setup Script 2019

Basic Setup

git clone https://gist.github.com/jpsilvashy/043eb889d7fe7a1987254a0133583e3a.git setup
cd setup && sh ./init.sh

Shell Configuration

  1. Enable plugins - edit ~/.zshrc

    Update plugins

     plugins=(autojump git brew common-aliases zsh-autosuggestions copydir copyfile encode64 node osx sublime tmux xcode pod docker git-extras git-prompt)
    

Generate Your Development SSH Key

  1. Generate your key for the development machine

    ssh-keygen -t rsa -b 2048
    
  2. Copy your public key (~/.ssh/id_rsa.pub) to your Bitbucket Account's "SSH Keys"

# Taps
tap 'caskroom/cask'
tap 'homebrew/cask-fonts'
tap 'homebrew/cask-versions'
tap 'homebrew/bundle'
## Shell Utilities
brew 'coreutils'
brew 'zsh'
brew 'zsh-completions'
brew 'jq'
## Network Utilities
brew 'htop'
brew 'nmap'
brew 'wget'
## System Utilities
brew 'tree'
## Dev Utilities
brew 'git'
brew 'awscli'
## Communication
cask 'slack'
## Productivity
cask 'google-chrome'
## Editor
cask 'visual-studio-code'
brew 'vim', args: ["--with-lua"]
## Development
cask 'atext'
cask 'iterm2'
cask 'ngrok'
cask 'opera'
# # App
# mas 'XCode', id: 497799835
#!/bin/sh
echo "Installing Homebrew"
if test ! $(which brew); then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
brew update
echo "Install Homebrew Packages"
brew tap homebrew/bundle
brew bundle
# echo "Install XCode CLI Tool"
# xcode-select --install
# echo "Installing Oh My Zsh"
# sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
# git clone git://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions
# git clone git://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/plugins/zsh-syntax-highlighting
# echo "source ~/.oh-my-zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
# sed -io 's/^plugins=.*/plugins=(autojump git brew common-aliases zsh-autosuggestions copydir copyfile encode64 node osx sublime tmux xcode pod docker git-extras git-prompt)/' ~/.zshrc
# sed -io 's/^ZSH_THEME.*/ZSH_THEME="dpoggi"/' ~/.zshrc
# echo "Installing Tmux Settings"
# git clone https://github.com/gpakosz/.tmux.git ~/.tmux
# ln -s ~/.tmux/.tmux.conf ~/.tmux.conf
# cp ~/.tmux/.tmux.conf.local ~/
# echo "Install VIM settings"
# git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
# sh ~/.vim_runtime/install_awesome_vimrc.sh
# echo "Configrating Git"
# git config --global merge.tool diffmerge
# git config --global merge.conflictstyle diff3
# git config --global mergetool.prompt false
# git config --global alias.co checkout
# git config --global alias.ci commit
# git config --global alias.st status
# git config --global alias.br branch
# git config --global core.editor $(which vim)
# git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
# git config --global alias.tree "log --graph --full-history --all --color --date=short --pretty=format:'%Cred%x09%h %Creset%ad%Cblue%d %Creset %s %C(bold)(%an)%Creset'"
# echo "Enabling Services"
# open /Applications/Alfred\ 4.app
# open /Applications/Gas\ Mask.app
# open /Applications/Clipy.app
# open /Applications/Rectangle.app
#!/bin/sh
git pull
echo "Updating Homebrew"
brew update && brew upgrade && brew cleanup && brew cask cleanup; brew bundle; brew doctor
echo "Updating Oh My Zsh"
env ZSH=$ZSH sh $ZSH/tools/upgrade.sh
echo "Updating VIM"
cd ~/.vim_runtime
git pull --rebase
# echo "Updating Tmux"
# cd ~/.tmux
# git pull --rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment