Install XCode from Apple App store, and you might need XCode Command Line Developer Tools, which is needed to build e.g. Ruby gem native extensions and install other system packages.
To check it after installation
We need packages manager on Mac
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
iTerm2 is a replacement for the native Terminal app that ships with Mac OS X.
Download and install it. And go to iTerm 2 => Preferences => Profiles => General, check “Copy to clipboard on selection”, check themes for fancy colors, “Solarized Dark Higher Contrast” is the one I am using.
Oh-my-zsh is the awesome Zsh framework.
Install it via curl
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
or via wget
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
and change zsh to be default:
chsh -s $(which zsh)
Enable plugins from .zshrc file
plugins=(git rails ruby gem rake bundler brew osx vagrant wd)
and choose a theme
More themes could be found from oh-my-zsh github page.
Tmux is a terminal multiplexer, which lets you switch between several programs in one terminal and easily attach and detach session towards remote server
brew install tmux
and just grab someone’s config file, e.g. this one
brew install Vim
Might need to
rehash after the latest version installed.
Configuration is time consuming, so I just take from spf13
My personal created .vimrc.bundles.local looks like:
Bundle 'Chiel92/vim-autoformat' Bundle 'avakhov/vim-yaml' Bundle 'jmcantrell/vim-virtualenv' Bundle 'elixir-lang/vim-elixir'
And customized .vimrc.local
and my .vimrc.before.local file is
Furthermore, your might need the silver searcher to speedup your searching.
And if you get a warning message like
"ycm_client_support.[so|pyd|dll] and ycm_core.[so|pyd|dll] not detected; you need to compile YCM before using it."
Then just do
cd .vim/bundle/YouCompleteMe ./install.sh
should solve it!
pip install powerline-status
Download Powerline Fonts and run
./install, then from “Profiles” => “Text” => “Font” => “Change Font”, to e.g. “Source Code Pro for Powerline”.
And you might find it’s convenient to map ESC key to CapsLock, I manage to do so using Seil.
Furthermore, Karabiner could be interesting if you want to customize your keyboard more.
To make the solarized theme work properly in terminal, it is good to download from solarized home page. Then import it form iTerm 2 => Preferences => Profiles => profiles => Colors => Load Presets… => Import…
Finally a screen shot