Optimized for MAC
- zsh
- The Ultimate vimrc
- oh-my-zsh
- powerlevel10k
- Powerline fonts
- Nerd Fonts
- YouCompleteMe
- Prettier
- fd
- ack.vim
- fzf 0.18.0
- nvm
Go to Terminal / iTerm setting and select Nerd Font as default font or non-ascii font after installation. This is necessary for the powerlevel10k theme.
Using the script to install setup will be convenient, but removes previous settings.
Back up files if necessary.
git clone --recursive https://github.com/henrysha/dotfiles.git ~/dotfiles
sudo ~/dotfiles/installohmyzsh.sh #if ohmyzsh is not installed
sudo ~/dotfiles/install.sh
~/dotfiles/brew.sh #homebrew cannot be run in sudo mode.
Clone current repo into ~/dotfiles
Recursive option is used to clone the iTerm color schemes submodules.
git clone --recursive https://github.com/henrysha/dotfiles.git ~/dotfiles
Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Install powerlevel10k
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
Install Powerline Fonts
# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
Install any font wanted using Homebrew.
- I installed Meslo series for my preference.
- At least one nerd-font is required for the powerlevel10k theme.
- IBM Plex is used in the vim.
brew tap homebrew/cask-fonts
brew cask install font-meslo-nerd-font
brew cask install font-ibm-plex
Install The Ultimate Vimrc
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
Add support for my_configs file for vim
echo "source ~/dotfiles/vim/my_configs.vim" >> ~/.vim_runtime/my_configs.vim
Install YouCompleteMe to vim_runtime
git clone https://github.com/Valloric/YouCompleteMe.git ~/.vim_runtime/my_plugins/YouCompleteMe
~/.vim_runtime/my_plugins/YouCompleteMe/install.py
Install ack.vim
brew install ack
git clone https://github.com/mileszs/ack.vim.git ~/.vim_runtime/my_plugins/ack.vim
Add the contents of custom zshrc file to ~/.zshrc
echo "source ~/dotfiles/zsh/theme.sh" >> ~/.zshrc
sed -i '' 's+robbyrussell+powerlevel10k/powerlevel10k+' ~/.zshrc
sed -i '' '66i\
export FZF_BASE="/usr/local/Cellar/fzf/0.18.0"' ~/.zshrc
sed -i '' 's/plugins=(git)/plugins=(git rbenv node vscode bundler fzf battery thefuck zsh_reload)/' ~/.zshrc
Install fzf
brew install fzf
Install fd
brew install fd
Install nvm
mkdir ~/.nvm
brew install nvm
Install yarn
brew install yarn
Install prettier
yarn global add prettier