check set-system-preferences.sh
Softwares should be controlled by brew. Install homebrew http://brew.sh
brew tap Homebrew/bundle
brew install mas
Install xcode:
mas install 497799835
sudo xcodebuild -license accept
xcode-select --install
Put Brewfile in the folder and run:
brew bundle
Install oh-my-zsh: https://github.com/robbyrussell/oh-my-zsh first. Then:
# 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
sudo scutil --set HostName kelon
# Creates a new ssh key
ssh-keygen -t rsa -b 4096 -C "[email protected]"
# Copy ssh key to clipboard for adding to github.com
pbcopy < ~/.ssh/id_rsa.pub
# Test connection
ssh -T [email protected]
# Set git config values
git config --global user.name "hlb" && \
git config --global user.email "[email protected]" && \
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"
And ... change screenshot directory?