HTTPS SSH

dotfiles

Build Status

@yous' dotfiles.

Table of Contents

Requirements

Installation

Clone this repository:

git clone https://github.com/yous/dotfiles.git
cd dotfiles

For available install options:

./install.sh
Command option Description
link Install symbolic links
antibody Install Antibody
brew Install Homebrew
formulae Install Homebrew formulae using Brewfile
pwndbg Install pwndbg
pyenv Install pyenv with pyenv-virtualenv
rbenv Install rbenv
rvm Install RVM
weechat Install WeeChat configuration
z Install z

In Windows, use install.bat. It links files into the user's home directory.

Git

Set user-specific configurations on ~/.gitconfig.local:

[user]
    name = Your Name
    email = you@example.com

If you are using a public PGP key:

[user]
    signingkey = YOUR KEY

You can also sign your each commit automatically:

[commit]
    gpgsign = true

For more information about signing commits, see A Git Horror Story: Repository Integrity With Signed Commits.

If you want to use latest release of Git for Ubuntu:

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update

Visit the PPA of Git for Ubuntu for more information.

Homebrew

If you want to install Homebrew,

./install.sh brew

Then install Homebrew formulae with:

./install.sh formulae

Ruby

chruby

If you want to install chruby, if you're on macOS,

brew install ruby-install
brew install chruby

Otherwise, install ruby-install first, if you're on Arch Linux,

yaourt -S ruby-install

Otherwise,

wget -O ruby-install-0.6.1.tar.gz https://github.com/postmodern/ruby-install/archive/v0.6.1.tar.gz
tar -xzvf ruby-install-0.6.1.tar.gz
cd ruby-install-0.6.1/
sudo make install

Then install chruby,

wget -O chruby-0.3.9.tar.gz https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz
tar -xzvf chruby-0.3.9.tar.gz
cd chruby-0.3.9/
sudo make install

RVM

If you want to install RVM,

./install.sh rvm

Update RVM with:

rvm get stable

rbenv

If you want to install rbenv, if you're on macOS,

brew install rbenv

Otherwise,

./install.sh rbenv

Gems

If you are using RVM,

gem update --system
rvm use current@global
gem install bundler rubocop ruby-lint wirble

Otherwise just install gems:

gem update --system
gem install bundler rubocop ruby-lint wirble

Python

If you want to install pyenv and pyenv-virtualenv, if you're on macOS,

brew install pyenv
brew install pyenv-virtualenv

Otherwise,

./install.sh pyenv

Zsh

To use Zsh as default shell,

chsh -s /bin/zsh

If you use custom Zsh like compiled one by Homebrew, add /usr/local/bin/zsh to /etc/shells and

chsh -s /usr/local/bin/zsh

To update Zsh plugins:

antibody update

To make RVM works with Vim on OS X Yosemite or earlier, move /etc/zshenv to /etc/zshrc as Tim Pope mentioned.

sudo mv /etc/zshenv /etc/zshrc

Antibody

If you want to install Antibody, if you're on macOS,

brew install getantibody/tap/antibody

Otherwise,

./install.sh antibody

Vim

To install Vim plugins,

:PlugInstall

You should install Exuberant Ctags to use vim-gutentags. You should install CMake to use YouCompleteMe.

To update Vim plugins:

:PlugUpdate

To update vim-plug:

:PlugUpgrade

For additional syntax checkers for ale or Syntastic:

  • C, C++
    • clang-check: brew install llvm
    • clang-tidy: brew install llvm
    • cppcheck: brew install cppcheck
  • CSS
    • CSSLint: npm install -g csslint
  • HTML
    • JSHint: npm install -g jshint
  • JavaScript
    • ESLint: npm install -g eslint
    • JSHint: npm install -g jshint
    • JSLint: npm install -g jslint
  • JSON
    • JSONLint: npm install -g jsonlint
  • Python
    • flake8: pip install flake8
  • Ruby
    • RuboCop: gem install rubocop
    • ruby-lint: gem install ruby-lint
  • SASS: gem install sass
  • SCSS: gem install sass scss-lint
  • xHTML
    • JSHint: npm install -g jshint

Neovim

To use Python 2 or 3 via pyenv in Neovim,

pyenv install 2.7.15
pyenv virtualenv 2.7.15 neovim2
pyenv activate neovim2
pip install neovim

pyenv install 3.6.5
pyenv virtualenv 3.6.5 neovim3
pyenv activate neovim3
pip install neovim

To use Ruby in Neovim,

gem install neovim

To use Node.js in Neovim,

npm install -g neovim

WeeChat

To install WeeChat configuration,

./install.sh weechat

Then install scripts:

/script install autosort.py buffers.pl colorize_nicks.py iset.pl

To update WeeChat scripts:

/script update
/script upgrade

Tools

pwndbg

If you want to install pwndbg,

./install.sh pwndbg

z

If you want to install z, if you're on macOS,

brew install z

Otherwise,

./install.sh z

IntelliJ, Android Studio

To use Tomorrow Theme:

  1. Open File > Import Settings… in IntelliJ or Android Studio.
  2. Select tomorrow-theme/JetBrains/settings.jar.
  3. Open Settings > Editor > Colors & Fonts.
  4. Select a scheme of Tomorrow Theme.

iTerm2

To use Tomorrow Theme:

  1. Open Preferences… > Profiles > Colors.
  2. Click 'Load Presets…' and select 'Import…'.
  3. Select *.itermcolors files under tomorrow-theme/iTerm2/.
  4. Click 'Load Presets…' again and select one of Tomorrow Theme.

License

Copyright © Chayoung You. See LICENSE.txt for details.