## System Preferences check `set-system-preferences.sh` ## Install Software Softwares should be controlled by brew. Install homebrew http://brew.sh ``` brew tap Homebrew/bundle brew install mas ``` Install xcode: ```bash mas install 497799835 sudo xcodebuild -license accept xcode-select --install ``` Put Brewfile in the folder and run: ``` brew bundle ``` ## zshrc Install oh-my-zsh: https://github.com/robbyrussell/oh-my-zsh first. Then: ```bash # alias "rm" to "rm -i" to avoid disaster. echo 'alias rm="rm -i"' >> ~/.zshrc # brew echo 'alias cask="brew cask"' >> ~/.zshrc echo 'export HOMEBREW_CASK_OPTS="--appdir=/Applications"' >> ~/.zshrc # autojump echo '[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh' >> ~/.zshrc # Fish-like autosuggestions echo 'source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ./.zshrc ``` ## Setup Hostname (Be sure to change hostname to yours) ```bash sudo scutil --set HostName kelon ``` ## Setup Git (Be sure to change email and name to yours) ```bash # Creates a new ssh key ssh-keygen -t rsa -b 4096 -C "hlbyichi@gmail.com" # Copy ssh key to clipboard for adding to github.com pbcopy < ~/.ssh/id_rsa.pub # Test connection ssh -T git@github.com # Set git config values git config --global user.name "hlb" && \ git config --global user.email "hlbyichi@gmail.com" && \ git config --global github.user hlb && \ git config --global color.ui true && \ git config --global push.default simple && \ git config --global alias.co checkout && \ git config --global alias.ci commit -v&& \ git config --global alias.st status && \ git config --global alias.br branch && \ git config --global alias.ll "log --stat" && \ git config --global alias.lp "log --pretty=oneline --abbrev-commit --decorate --graph" ```